ansible/test/integration/targets/ansible-test-cloud-galaxy/tasks/main.yml
Matt Clay b752d07163 Overhaul ansible-test container management.
This brings ansible-test closer to being able to support split controller/remote testing.
2021-04-12 12:40:36 -07:00

25 lines
698 B
YAML

# The pulp container has a long start up time.
# The first task to interact with pulp needs to wait until it responds appropriately.
- name: Wait for Pulp API
uri:
url: '{{ pulp_api }}/pulp/api/v3/distributions/ansible/ansible/'
user: '{{ pulp_user }}'
password: '{{ pulp_password }}'
force_basic_auth: true
register: this
until: this is successful
delay: 1
retries: 60
- name: Verify Galaxy NG server
uri:
url: "{{ galaxy_ng_server }}"
user: '{{ pulp_user }}'
password: '{{ pulp_password }}'
force_basic_auth: true
- name: Verify Pulp server
uri:
url: "{{ pulp_server }}"
status_code:
- 404 # endpoint responds without authentication