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 341834fe70 [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
..
ansible_test Relocate ansible-test self tests outside package. (#61255) 6 years ago
integration Prevent ansible_failed_task from further templating (#74290) (#74308) 5 years ago
lib/ansible_test [stable-2.11] CI and compat fixes for Jinja2 >= 3.0 (#74666) 5 years ago
sanity [stable-2.11] CI and compat fixes for Jinja2 >= 3.0 (#74666) 5 years ago
support module compat for py3.8+ controller (#73423) 5 years ago
units [become] Fix solaris permissions regression 5 years ago
utils/shippable [stable-2.11] Remove obsolete Shippable specific scripts. 5 years ago