summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-galaxy-collection/tasks/pulp.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/ansible-galaxy-collection/tasks/pulp.yml')
-rw-r--r--test/integration/targets/ansible-galaxy-collection/tasks/pulp.yml25
1 files changed, 18 insertions, 7 deletions
diff --git a/test/integration/targets/ansible-galaxy-collection/tasks/pulp.yml b/test/integration/targets/ansible-galaxy-collection/tasks/pulp.yml
index 8f64746acc..f8638c0814 100644
--- a/test/integration/targets/ansible-galaxy-collection/tasks/pulp.yml
+++ b/test/integration/targets/ansible-galaxy-collection/tasks/pulp.yml
@@ -109,39 +109,46 @@
delay: 1
retries: 25
-- name: create pulp repo
+- name: create pulp repos
uri:
url: '{{ pulp_api }}/pulp/api/v3/repositories/ansible/ansible/'
method: POST
body_format: json
body:
- name: ansible_ci
+ name: '{{ repo_name }}'
status_code:
- 201
user: '{{ pulp_user }}'
password: '{{ pulp_password }}'
force_basic_auth: true
register: pulp_repo
+ loop:
+ - automation-hub
+ loop_control:
+ loop_var: repo_name
-- name: create pulp distribution
+- name: create pulp distributions
uri:
url: '{{ pulp_api }}/pulp/api/v3/distributions/ansible/ansible/'
method: POST
body_format: json
body:
- name: ansible_ci
- base_path: ansible_ci
- repository: '{{ pulp_api }}{{ pulp_repo.json.pulp_href }}'
+ name: '{{ repo.repo_name }}'
+ base_path: '{{ repo.repo_name }}'
+ repository: '{{ pulp_api }}{{ repo.json.pulp_href }}'
status_code:
- 202
user: '{{ pulp_user }}'
password: '{{ pulp_password }}'
force_basic_auth: true
register: pulp_distribution_task
+ loop: '{{ pulp_repo.results }}'
+ loop_control:
+ loop_var: repo
- name: wait for distribution creation
uri:
- url: '{{ pulp_api }}{{ pulp_distribution_task.json.task }}'
+ url: '{{ pulp_api }}{{ task.json.task }}'
method: GET
status_code:
- 200
@@ -152,3 +159,7 @@
delay: 1
retries: 25
register: pulp_distribution
+ loop: '{{ pulp_distribution_task.results }}'
+ loop_control:
+ loop_var: task
+ label: '{{ task.json.task }}'