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
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>
4 years ago
..
ansible_test Relocate ansible-test self tests outside package. (#61255) 5 years ago
integration Deprecate Py2.6 support for target nodes (#74165) 4 years ago
lib/ansible_test Split out module/module_utils unit test execution. 4 years ago
sanity [conditional] Remove support for bare variables (#74208) 4 years ago
support Overhaul ansible-test container management. 4 years ago
units [become] Fix solaris permissions regression 4 years ago
utils/shippable module compat for py3.8+ controller (#73423) 4 years ago