Fixing up the logic in the test_script tests removal portion
This commit is contained in:
parent
0656d1466a
commit
180a0a8e77
1 changed files with 3 additions and 1 deletions
|
@ -58,12 +58,14 @@
|
||||||
|
|
||||||
- name: remove afile.txt with remote_afile.sh via command
|
- name: remove afile.txt with remote_afile.sh via command
|
||||||
script: remove_afile.sh {{output_dir_test | expanduser}}/afile.txt removes={{output_dir_test | expanduser}}/afile.txt
|
script: remove_afile.sh {{output_dir_test | expanduser}}/afile.txt removes={{output_dir_test | expanduser}}/afile.txt
|
||||||
|
register: script_result1
|
||||||
|
|
||||||
- name: verify that afile.txt is absent
|
- name: verify that afile.txt is absent
|
||||||
file: path={{output_dir_test}}/afile.txt state=absent
|
file: path={{output_dir_test}}/afile.txt state=absent
|
||||||
register: script_result1
|
register: script_result2
|
||||||
|
|
||||||
- name: assert that the file was removed by the script
|
- name: assert that the file was removed by the script
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "script_result1|changed"
|
- "script_result1|changed"
|
||||||
|
- "script_result2.state == 'absent'"
|
||||||
|
|
Loading…
Reference in a new issue