6b1648f708
Mass update of test/ directory from devel
2016-03-21 12:50:12 -04:00
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.
2016-01-20 12:17:14 -08:00
2786908bac
fixed tests to follow new invocation structure
...
also added maxdiff setting to see issues clearly when they happen
2015-12-23 11:45:50 -05:00
d2bf615780
Fix unittests for return of invocation from fail_json and exit_json
2015-12-19 15:50:43 -08:00
b6dac26224
Make module_utils.known_hosts.get_fqdn work on ipv6
2015-12-14 11:10:02 -08:00
a7a3a34987
Add tests for ansible.module_utils.known_hosts
2015-12-14 11:09:49 -08:00
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).
2015-12-03 14:26:25 -08:00
b9fbfaf64e
Also some unicode tests for return_values()
2015-12-02 21:12:33 -08:00
2c5c7b54f6
Add some test data that has unicode values
2015-12-02 21:12:26 -08:00
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.
2015-11-17 11:57:50 +01:00
5a0e63af1e
Workaround seeming bug in python-2.6's sys.exit()
2015-10-21 11:54:02 -07:00
6e5055e786
Update the use of no_log values to cover everything that heuristic_log_sanitize does.
...
Fixes #12792
2015-10-21 08:15:46 -07:00
c2d188baff
Hide values in json returns which were given in parameters marked no_log.
2015-10-20 12:42:36 -07:00
225fe85530
Skip test_module_utils_basic_ansible_module_creation on Python 3
...
This reverts commit 073f10a52a and instead
disables the failing test.
We're focusing on Python 3 support on the controller first; modules will
come later.
2015-10-14 09:32:26 +03:00
15d7f53846
AnsibleModules.log() fix for python3
...
Also add unittests for AnsibleModules.log()
Fixes #12586
2015-10-12 13:30:27 -07:00
0371b14567
Fix test: selinux gets passed byte strings
...
(I don't have a system with selinux to test if the module still wants
byte strings even on Python 3.)
2015-09-30 18:46:50 +03:00
500e7a1263
Fix test: _to_filesystem_str produces byte strings
2015-09-30 18:46:49 +03:00
f7571cb37f
Python 3: there's no __builtin__ module
...
This caused an ImportError in a test module and showed up as one test
failure. Now the test module can get imported and many more tests fail
(on Python 3). Such is life. ;-)
2015-09-30 18:40:47 +03:00
709dbbc7db
Use 0oNNN octal syntax in test/
2015-08-27 22:15:57 +03:00
49d19e82ab
Get tests passing
...
The largest failure in the tests was due to selinux not being installed.
The tests don't require it to be installed, so mock the import.
2015-06-05 16:05:39 -05:00
4bc7703db3
Fixing some small bugs related to integration tests (v2)
2015-06-01 16:42:10 -05:00
e59d4f3b51
More module_utils/basic.py unit tests for v2
2015-05-28 01:26:04 -05:00
339a02c384
Started reworking module_utils/basic unit tests (v2)
2015-05-27 03:21:15 -05:00
a960fcd569
Adding module_utils tests from v1 to v2
2015-05-17 01:29:40 -05:00