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
Sloane Hertel 6fe3b64990
Fix installing roles containing symlinks (#82911) (#83138)
* Fix installing roles containing symlinks

Fix sanitizing tarfile symlinks relative to the link directory instead of the archive

For example:

role
├── handlers
│   └── utils.yml -> ../tasks/utils/suite.yml

The link ../tasks/utils/suite.yml will resolve to a path outside of the link's directory, but within the role

role/handlers/../tasks/utils/suite.yml

the resolved path relative to the role is tasks/utils/suite.yml, but if the symlink is set to that value, tarfile would extract it from role/handlers/tasks/utils/suite.yml

* Replace overly forgiving test case with tests for a symlink in a subdirectory of the archive and a symlink in the archive dir when these are not equivalent.

* Build test case from role files to make it easier to add test cases

Fixes #82702
Fixes #81965
Fixes #82051

(cherry picked from commit e84240db84)
2 years ago
..
integration Fix installing roles containing symlinks (#82911) (#83138) 2 years ago
lib/ansible_test Do not mangle plugin names in collections that start with an underscore. (#82574) (#82886) 2 years ago
sanity [stable-2.15] Overhaul package-data sanity test (#81427) (#81439) 2 years ago
support [stable-2.15] Fix subversion integration test (#82029) 2 years ago
units Avoid winrm hang on stdin write failure (#82766) (#82781) 2 years ago