ansible/test/units/cli
Sam Doran d45cb01b84
ansible-galaxy - fix collection installation with trailing slashes (#70016)
If we fail to find a member when extracting a directory, try adding a trailing
slash to the member name. In certain cases, the member in the tarfile will
contain a trailing slash but the file name in FILES.json will never contain
the trailing slash.

If unable to find the member, handle the KeyError and print a nicer error.

Also check if a directory exists before creating it since it may have been
extracted from the archive.

Fixes #70009

* Add unit tests
* Use loop for trying to get members
2020-06-15 17:36:07 -04:00
..
arguments optparse_helpers: improve unit tests for version() (#59626) 2019-08-14 10:32:26 -05:00
galaxy ansible-galaxy - fix collection installation with trailing slashes (#70016) 2020-06-15 17:36:07 -04:00
test_data Prevent generating roles that do not pass linting (#63709) 2019-10-22 11:26:07 -04:00
__init__.py
test_adhoc.py Restore ansible --version output (#55728) 2019-04-29 16:38:31 -04:00
test_cli.py Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
test_console.py Restore ansible --version output (#55728) 2019-04-29 16:38:31 -04:00
test_galaxy.py Add support to install collections from git repositories (#69154) 2020-05-29 13:33:32 -04:00
test_playbook.py Perfy McPerferton (#58400) 2019-07-22 14:25:20 -05:00
test_vault.py ansible-galaxy tidy up arg parse with better validation (#59957) 2019-08-14 06:36:29 +10:00