fix tower collection integration test race condition

This commit is contained in:
Nikhil Jain
2021-03-12 14:57:52 +05:30
parent e8b2072ea5
commit 0ee49dae76

View File

@@ -164,6 +164,18 @@
that:
- "result is changed"
- name: Wait for a job template to complete
tower_job_wait:
job_id: "{{ result.id }}"
max_interval: 10
timeout: 120
register: result
- assert:
that:
- "result is not changed"
- "result.status == 'successful'"
- name: Get the job
tower_job_list:
query: {"id": "{{result.id}}"}