mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix for bug related to async jid polling change plus a new test
This commit is contained in:
parent
88462729aa
commit
78bdb078fe
2 changed files with 16 additions and 2 deletions
|
@ -43,3 +43,17 @@
|
|||
- "'stdout_lines' in async_result"
|
||||
- "async_result.rc == 0"
|
||||
|
||||
- name: test async without polling
|
||||
command: sleep 5
|
||||
async: 30
|
||||
poll: 0
|
||||
register: async_result
|
||||
|
||||
- debug: var=async_result
|
||||
|
||||
- name: validate async without polling returns
|
||||
assert:
|
||||
that:
|
||||
- "'ansible_job_id' in async_result"
|
||||
- "'started' in async_result"
|
||||
- "'finished' not in async_result"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue