diff options
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/targets/async/tasks/main.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/integration/targets/async/tasks/main.yml b/test/integration/targets/async/tasks/main.yml index b5bebf1092..c8c12f6d60 100644 --- a/test/integration/targets/async/tasks/main.yml +++ b/test/integration/targets/async/tasks/main.yml @@ -42,6 +42,25 @@ - async_result.finished == 1 - async_result is finished +- name: assert temp async directory exists + stat: + path: "~/.ansible_async" + register: dir_st + +- assert: + that: + - dir_st.stat.isdir is defined and dir_st.stat.isdir + +- name: stat temp async status file + stat: + path: "~/.ansible_async/{{ async_result.ansible_job_id }}" + register: tmp_async_file_st + +- name: validate automatic cleanup of temp async status file on completed run + assert: + that: + - not tmp_async_file_st.stat.exists + - name: test async without polling command: sleep 5 async: 30 |