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/plugins
Rick Elrod 7d64aebdd3 [become] Fix solaris permissions regression
Change:
- Regression introduced in #70785
- When macOS chmod ACL syntax is used, Solaris-derived chmods return
  with a status of 5. This is also used for our sshpass handling,
  because sshpass will return 5 on auth failure. This means on Solaris,
  we incorrectly assume auth failure when we reach this branch of logic
  and try to run chmod with macOS syntax.
- We now wrap this specific use of chmod in an exception handler that
  looks for AnsibleAuthenticationFailure and skips over it. This adds
  another authentication attempt (something we normally avoid to prevent
  account lockout), but seems better than the regression of not allowing
  other fallbacks to be used.
- Without this patch, if setfacl fails on Solaris (and sshpass is used),
  we do not try common_remote_group or world-readable tmpdir fallbacks.

Test Plan:
- New unit

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
..
action [become] Fix solaris permissions regression 5 years ago
become Migrated to community.general 6 years ago
cache Remove deprecated cache interfaces (#74198) 5 years ago
callback Factor out host_label() in default stdout callback plugin (#73814) 5 years ago
connection remove deprecated connection password functions (#74155) 5 years ago
filter Revert "Add duplicated set filter and documentation (#72729)" (#74053) 5 years ago
inventory constructed - Add keyed_groups suboptions 'default_value' and 'trailing_separator' (#74005) 5 years ago
loader_fixtures Clean up unit test boilerplate. 6 years ago
lookup All lookups ported to config system (#74108) 5 years ago
shell powershell - fix nested CLIXML parser (#71412) 5 years ago
strategy Temporarily disable strategy units (#74048) 5 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
test_plugins.py plugin loader: return collection name; ansible-doc: handle ansible.builtin correctly (#70026) 6 years ago