Commit Graph

13 Commits (1fc35117d391ef112ec09b24728bc75b51cabcdd)

Author SHA1 Message Date
Toshio Kuratomi 63404821da rework run_command's env setting to not change os.environ for the rest of the module.
New param to run_command to modify the environment for just this invocation.
Documentation and comment adjustments.
10 years ago
Brian Coca 2786908bac fixed tests to follow new invocation structure
also added maxdiff setting to see issues clearly when they happen
10 years ago
Toshio Kuratomi d2bf615780 Fix unittests for return of invocation from fail_json and exit_json 10 years ago
Michael Scherer b6dac26224 Make module_utils.known_hosts.get_fqdn work on ipv6 10 years ago
Michael Scherer a7a3a34987 Add tests for ansible.module_utils.known_hosts 10 years ago
Toshio Kuratomi f8911adbbc For now, skip tests of module_utils/basic functions that are failing on
py3 (these are only run on the target hosts, not on the controller).
10 years ago
Toshio Kuratomi b9fbfaf64e Also some unicode tests for return_values() 10 years ago
Toshio Kuratomi 2c5c7b54f6 Add some test data that has unicode values 10 years ago
Brano Zarnovican 90f99f29ae unittest cover for 'run_command'
All os.*, subprocess.* is mocked to avoid side-effects.
Tests are skipped in Py3, since 'run_command' is not Py3-ready, yet.
10 years ago
Toshio Kuratomi 5a0e63af1e Workaround seeming bug in python-2.6's sys.exit() 10 years ago
Toshio Kuratomi 6e5055e786 Update the use of no_log values to cover everything that heuristic_log_sanitize does.
Fixes #12792
10 years ago
Toshio Kuratomi c2d188baff Hide values in json returns which were given in parameters marked no_log. 10 years ago
Toshio Kuratomi 15d7f53846 AnsibleModules.log() fix for python3
Also add unittests for AnsibleModules.log()

Fixes #12586
10 years ago