Merge pull request #9575 from jainnikhil30/tower_collection_integration_test_fix

fix tower collection integration test race condition

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-03-12 14:01:36 +00:00 committed by GitHub
commit c170d4c4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}}"}