ansible/test/units/modules/system
Kai 3251aecd95 Fix leading slashes being stripped from mount src (#24013)
* Tidy mount module for testing

Fix spelling mistakes in comments. I *think* the example for omitting parents
root has the wrong parent ID.

Make mountinfo file a parameter for testing.

* Don't strip leading slash from mounts

The current code does not follow the example, it produces src=tmp/aaa instead
of src=/tmp/aaa. This causes problems with bind mounts under /rootfs.

* Use dictionary to store mounts by ID

Instead of looping over each one to check if the ID matches. This does not
preserve the order of the output on < Python3.6, but that is not necessary.

* Make linux_mounts a dict

Always accessed by 'dst', so avoid looping by just making it a key.

* Add test case for get_linux_mounts
2017-08-29 15:16:53 +02:00
..
interfaces_file New module: manage debian network interfaces file /etc/network/interfaces (system/interfaces_file) (#25295) 2017-08-01 12:11:43 -06:00
__init__.py New module: manage debian network interfaces file /etc/network/interfaces (system/interfaces_file) (#25295) 2017-08-01 12:11:43 -06:00
test_known_hosts.py
test_linux_mountinfo.py Fix leading slashes being stripped from mount src (#24013) 2017-08-29 15:16:53 +02:00
test_pamd.py
test_parted.py Add unit tests for parted module (#24164) 2017-07-17 21:11:10 -07:00
test_systemd.py