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/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
4 years ago
..
arguments optparse_helpers: improve unit tests for version() (#59626) 5 years ago
galaxy ansible-galaxy - fix collection installation with trailing slashes (#70016) 4 years ago
test_data Prevent generating roles that do not pass linting (#63709) 5 years ago
__init__.py galaxy info displayed 'galaxy_info' section wrong 8 years ago
test_adhoc.py Restore ansible --version output (#55728) 5 years ago
test_cli.py Replace TestCase.assertEquals with TestCase.assertEqual. 5 years ago
test_console.py Restore ansible --version output (#55728) 5 years ago
test_galaxy.py Add support to install collections from git repositories (#69154) 4 years ago
test_playbook.py Perfy McPerferton (#58400) 5 years ago
test_vault.py ansible-galaxy tidy up arg parse with better validation (#59957) 5 years ago