You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
7 years ago
..
cloud [cloud] new module lambda_policy (PR #24951) 7 years ago
monitoring circonus_annotation: reason becomes a string 7 years ago
network Refactor/fix nxos_nxapi to use show run (#28675) 7 years ago
packaging Ansible Config part2 (#27448) 7 years ago
remote_management Added support to HPE Network Set resources (#28614) 7 years ago
system Fix leading slashes being stripped from mount src (#24013) 7 years ago
web_infrastructure Test for _get_url_data in jenkins_plugin.py (#24905) 8 years ago
__init__.py Some algorithmic unittests for the apt and docker modules 9 years ago