1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/parsing
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
..
utils Fix unit test dirs to match code under test. 2016-11-10 18:59:07 -08:00
vault Fix 'ansible-vault edit /some/symlink' (#20417) 2017-02-24 12:35:39 -05:00
yaml Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_dataloader.py Fix unit test dirs to match code under test. 2016-11-10 18:59:07 -08:00
test_mod_args.py PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
test_splitter.py Switch tests to pytest and ansible-test. 2017-01-11 12:34:59 -08:00
test_unquote.py Switch tests to pytest and ansible-test. 2017-01-11 12:34:59 -08:00