Browse code

Updating the test_script integration tests with the version from devel

James Cammarata authored on 2016/04/01 05:00:33
Showing 1 changed files
... ...
@@ -58,12 +58,14 @@
58 58
 
59 59
 - name: remove afile.txt with remote_afile.sh via command
60 60
   script: remove_afile.sh {{output_dir_test | expanduser}}/afile.txt removes={{output_dir_test | expanduser}}/afile.txt
61
+  register: script_result1
61 62
 
62 63
 - name: verify that afile.txt is absent
63 64
   file: path={{output_dir_test}}/afile.txt state=absent
64
-  register: script_result1
65
+  register: script_result2
65 66
 
66 67
 - name: assert that the file was removed by the script
67 68
   assert:
68 69
     that:
69
-      - "script_result1.changed != True"
70
+      - "script_result1|changed"
71
+      - "script_result2.state == 'absent'"