ansible/test/units/modules
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
..
cloud [cloud] new module lambda_policy (PR #24951) 2017-08-28 16:45:53 -04:00
monitoring circonus_annotation: reason becomes a string 2017-08-15 19:07:21 -07:00
network Refactor/fix nxos_nxapi to use show run (#28675) 2017-08-28 15:00:56 -04:00
packaging Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
remote_management Added support to HPE Network Set resources (#28614) 2017-08-27 00:49:12 +02:00
system Fix leading slashes being stripped from mount src (#24013) 2017-08-29 15:16:53 +02:00
web_infrastructure Test for _get_url_data in jenkins_plugin.py (#24905) 2017-05-22 14:40:13 -07:00
__init__.py Some algorithmic unittests for the apt and docker modules 2016-04-27 07:23:31 -07:00