Skip to content

Commit

Permalink
tests: wait for backends to be available
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Feb 11, 2025
1 parent 41b5a5d commit 25f1cea
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/scenarios/umbrella_e2e/sub_umbrella/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,15 @@

- name: "thruk cron install "
shell: sudo su - demo -c "thruk cron install"

- name: "wait for {{ item }} to come up"
uri:
url: "{{ item }}/demo/thruk/cgi-bin/remote.cgi"
validate_certs: False
status_code: 200
register: result
until: result.status == 200
retries: 180
delay: 1
with_items:
- "https://omd.test.sub.local"
12 changes: 12 additions & 0 deletions t/scenarios/umbrella_e2e/umbrella/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,15 @@
- name: "thruk cron install "
shell: sudo su - demo -c "thruk cron install"

- name: "wait for {{ item }} to come up"
uri:
url: "{{ item }}/demo/thruk/cgi-bin/remote.cgi"
validate_certs: False
status_code: 200
register: result
until: result.status == 200
retries: 180
delay: 1
with_items:
- "https://backend.test.local"
- "https://sub.test.sub.local"

0 comments on commit 25f1cea

Please sign in to comment.