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/galaxy
Jordan Borean 84a60f1883
galaxy - preserve symlinks on build/install (#69959) (#69994)
* galaxy - preserve symlinks on build/install (#69959)

* galaxy - preserve symlinks on build/install

* Handle directory symlinks

* py2 compat change

* Updated changelog fragment

(cherry picked from commit d30fc6c0b3)

* Fix integration test

* 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

(cherry picked from commit d45cb01b84)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
..
__init__.py Collection test (#59488) 5 years ago
test_api.py ansible-galaxy - optimise some paths and use fake galaxy int tests (#67685) - 2.9 (#67874) 5 years ago
test_collection.py galaxy - preserve symlinks on build/install (#69959) (#69994) 5 years ago
test_collection_install.py galaxy - preserve mode properly on artifact (#68418) - 2.9 (#68451) 5 years ago
test_token.py ansible-galaxy - define multiple galaxy instances in ansible.cfg (#60553) 5 years ago
test_user_agent.py ansible-galaxy - expand User-Agent string for Galaxy endpoints (#65578) 5 years ago