ansible/test/units
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
..
ansible_test Add Azure Pipelines support to ansible-test. 2020-06-11 14:57:42 -07:00
cli ansible-galaxy - fix collection installation with trailing slashes (#70016) 2020-06-15 17:36:07 -04:00
compat
config Fix inline vaults for plugins in ensure_type (#67492) 2020-02-25 10:42:31 -05:00
errors Remove empty overridden unittest.setUp and unittest.tearDown methods. 2019-11-05 09:12:11 -08:00
executor Make Python path warning say what it means to say (#69669) 2020-05-29 13:15:11 -04:00
galaxy galaxy - preserve symlinks on build/install (#69959) 2020-06-11 06:46:42 +10:00
inventory Clean up unit tests to assist with migration. (#67875) 2020-02-28 20:29:41 -08:00
inventory_test_data/group_vars
mock Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
module_utils Deprecation revisited (#69926) 2020-06-09 15:21:19 -07:00
modules Flatten the directory hierarchy of modules (#68966) 2020-05-13 19:14:53 -07:00
parsing starting metadata sunset (#69454) 2020-06-04 21:01:46 -04:00
playbook Fix IncludedFile equality check (#69524) 2020-06-04 10:41:46 -05:00
plugins support hard coded module_defaults.yml groups for collections (#69919) 2020-06-09 15:38:57 -07:00
regex Add toggle to control invalid character substitution in group names (#52748) 2019-03-06 11:49:40 -05:00
template Do not treat AnsibleUndefined as being unsafe (#65202) 2019-11-25 15:06:29 +01:00
utils config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 2020-06-11 11:40:13 -07:00
vars Remove empty setUp/tearDown/tearDownClass methods in test classes. 2019-11-06 08:14:29 -08:00
__init__.py
requirements.txt Remove unnecessary unit test requirements. 2020-03-23 11:14:21 -05:00
test_constants.py
test_context.py Unit tests: remove unused imports (#59740) 2019-07-29 22:10:13 +02:00