mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-30 07:50:43 +00:00
Added an async 'started' test (like 'finished') (#43445)
This commit is contained in:
parent
cc2164f92a
commit
3d70274864
3 changed files with 20 additions and 3 deletions
|
|
@ -76,6 +76,7 @@
|
|||
assert:
|
||||
that:
|
||||
- fnf_task.started == 1
|
||||
- fnf_task is started
|
||||
- "'ansible_job_id' in fnf_task"
|
||||
|
||||
- name: 'check on task started as a "fire-and-forget"'
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
that:
|
||||
- asyncresult.ansible_job_id is match('\d+\.\d+')
|
||||
- asyncresult.started == 1
|
||||
- asyncresult is started
|
||||
- asyncresult.finished == 0
|
||||
- asyncresult is not finished
|
||||
- asyncresult.results_file is search('\.ansible_async.+\d+\.\d+')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue