ansible/test/units
Adrian Likins 6c6b647182 Fix 'ansible-vault edit /some/symlink' (#20417)
Since vault edit attempts to unlink
edited files before creating a new file
with the same name and writing to it, if
the file was a symlink, the symlink would
be replaced with a regular file.

VaultEditor file ops now check if files
it is changing are symlinks and instead
works directly on the target, so that
os.rename() and shutils do the right thing.

Add unit tests cases for this case and
assorted VaultEditor test cases.

Fixes #20264
2017-02-24 12:35:39 -05:00
..
cli Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
contrib PEP 8 W291 whitespace cleanup. 2017-01-27 17:08:02 -08:00
errors Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
executor Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
inventory Add lots of test cases to inventory/test_host.py (#17827) 2016-11-29 13:38:04 -05:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
module_utils Postgres ssl mode prefer (#21498) 2017-02-16 11:29:43 -08:00
modules [cloud][tests] AWS lambda module unit tests (#21768) 2017-02-23 09:58:26 -05:00
parsing Fix 'ansible-vault edit /some/symlink' (#20417) 2017-02-24 12:35:39 -05:00
playbook Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
plugins partial revert of changes introduced in d5f7a0181b (#21688) 2017-02-20 15:37:14 -05:00
template Don't check for var._obj in template._clean_data (#20868) 2017-02-08 16:09:34 -05:00
utils PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
vars PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_constants.py Add some unittests for lib/ansible/constants.py 2017-02-22 15:56:11 -08:00