summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-test-cloud-galaxy/tasks/main.yml
blob: 8ae15ea594466e0ab5260a8b6a67754433408c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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