Skip to content

Commit c79ba27

Browse files
committed
tests: stop adding pools to the activation key
The Candlepin account used for tests uses SCA, and thus any activation key for it can already access to the whole content of the organization of the account. The addition of the pools to the activation key is thus redundant, and upcoming versions of Candlepin will not allow this behaviour anymore. Hence, stop adding pools to the activation key, which is no more needed. There is no behaviour change. Signed-off-by: Pino Toscano <[email protected]>
1 parent 5676f21 commit c79ba27

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/tasks/setup_candlepin.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -135,31 +135,6 @@
135135
dest: /etc/pki/rpm-gpg/RPM-GPG-KEY-candlepin
136136
mode: "0644"
137137

138-
- name: Query for default_key activation key
139-
uri:
140-
url: "{{ _cp_url_owner }}/activation_keys?name={{ lsr_rhc_test_data.reg_activation_keys[0] }}" # yamllint disable-line
141-
method: GET
142-
url_username: "{{ lsr_rhc_test_data.reg_username }}"
143-
url_password: "{{ lsr_rhc_test_data.reg_password }}"
144-
register: default_key
145-
146-
- name: Get pools for product 7050
147-
uri:
148-
url: "{{ _cp_url_owner }}/pools?product=7050"
149-
method: GET
150-
url_username: "{{ lsr_rhc_test_data.reg_username }}"
151-
url_password: "{{ lsr_rhc_test_data.reg_password }}"
152-
register: pools
153-
154-
- name: Add pools for product 7050 to default_key activation key
155-
uri:
156-
url: "{{ _cp_url }}/activation_keys/{{ default_key.json[0].id }}/pools/{{ item.id }}" # yamllint disable-line
157-
method: POST
158-
url_username: "{{ lsr_rhc_test_data.reg_username }}"
159-
url_password: "{{ lsr_rhc_test_data.reg_password }}"
160-
loop:
161-
"{{ pools.json }}"
162-
163138
- name: Configure environments
164139
when: environments | d(false)
165140
block:

0 commit comments

Comments
 (0)