Skip to content

Commit

Permalink
tests: switch to an SCA account for Candlepin
Browse files Browse the repository at this point in the history
The role officially supports only SCA, so switch the test account used
in the self-deployed Candlepin to an SCA-only account.

As consequence, also adapt the product certificate & repositories used
to what the new account can access to.

There are no behaviour changes.

Signed-off-by: Pino Toscano <[email protected]>
  • Loading branch information
ptoscano committed Aug 5, 2024
1 parent 449e1bf commit b4bce4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/files/candlepin_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ lsr_rhc_test_data:
candlepin_port: 8443
candlepin_prefix: /candlepin
candlepin_insecure: false
reg_username: "admin"
reg_password: "admin"
reg_username: "doc"
reg_password: "password"
reg_activation_keys:
- "default_key"
reg_invalid_username: "invalid-user"
reg_invalid_password: "invalid-password"
reg_organization: "admin"
reg_organization: "donaldduck"
baseurl: "http://localhost:8080"
repositories:
- {name: "admin-content-label-5051", state: enabled}
- {name: "donaldy-content-label-7051", state: enabled}
- {name: "content-label-32060", state: disabled}
release: null # no releases in Candlepin test data
proxy_noauth_hostname: localhost
Expand Down
8 changes: 4 additions & 4 deletions tests/tasks/setup_candlepin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
- /etc/pki/product-default/
changed_when: false
loop:
- "5050"
- "7050"

- name: Copy Candlepin CA certificate for subscription-manager
command:
Expand Down Expand Up @@ -125,15 +125,15 @@
url_password: "{{ lsr_rhc_test_data.reg_password }}"
register: default_key

- name: Get pools for product 5050
- name: Get pools for product 7050
uri:
url: "{{ _cp_url_owner }}/pools?product=5050"
url: "{{ _cp_url_owner }}/pools?product=7050"
method: GET
url_username: "{{ lsr_rhc_test_data.reg_username }}"
url_password: "{{ lsr_rhc_test_data.reg_password }}"
register: pools

- name: Add pools for product 5050 to default_key activation key
- name: Add pools for product 7050 to default_key activation key
uri:
url: "{{ _cp_url }}/activation_keys/{{ default_key.json[0].id }}/pools/{{ item.id }}" # yamllint disable-line
method: POST
Expand Down

0 comments on commit b4bce4d

Please sign in to comment.