ansible/test
Sam Doran 1379e77bf1 Add proper check mode support to the script module (#31852)
* Do not run script in check mode

Fixes #30676

* Reformat script integration test

* Add integration tests for check mode of script module

* Fix name on test

* Cleanup temp file

* win_script integration test syntaxt changes

* Add check mode tests for win_script

* Use proper variable in test

* Fail if source file does not exist

* Verify script is accessible and don't copy in check mode

Use shlex to properly split shell arguments, though a path with spaces in it still needs to be quoted in the playbook.
Add note to docs describing such.
Improve error message if file is not found indicating there may be a space in the path.

* Properly encode path now that path is split using shlex

* Allow for spaces in both path and script name

* Add unicode character test to Linux script tests

* Add Linux test for space in path to script

(cherry picked from commit ea3638b580)
2017-11-14 11:10:25 -05:00
..
cache Update ansible-test sanity command. (#31958) 2017-10-26 12:00:57 -07:00
compile Docs how to test (2nd) (#24094) 2017-04-28 09:08:26 +01:00
integration Add proper check mode support to the script module (#31852) 2017-11-14 11:10:25 -05:00
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner lock azure containerservice to below 2.0.0 2017-11-02 16:34:29 -07:00
sanity Disable pylint rules for stable-2.4. 2017-10-26 12:00:57 -07:00
units Better handling of malformed vault data envelope (#32515) 2017-11-10 14:31:32 -05:00
utils Update ansible-test sanity command. (#31958) 2017-10-26 12:00:57 -07:00