ansible/test/units
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>
2021-04-19 20:28:57 -05:00
..
_vendor transparent downstream vendoring (#69850) 2020-06-15 16:22:25 -07:00
ansible_test Overhaul ansible-test container management. 2021-04-12 12:40:36 -07:00
cli Clarify CLI version number as core version (#72287) 2021-03-01 11:14:56 -06:00
compat
config Provide better decryption errors for single vault values (#72362) 2020-11-18 14:25:32 -06:00
errors Fix YAML error message when error is at the end of the file (#73241) 2021-01-19 10:07:36 -05:00
executor Use ArgumentSpecValidator in AnsibleModule (#73703) 2021-03-19 12:09:18 -07:00
galaxy add --offline option to galaxy collection verify (#74040) 2021-03-29 09:47:15 -07:00
inventory Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
inventory_test_data/group_vars
mock only add data when there is data to add (#54559) 2021-02-11 10:07:20 -05:00
module_utils Relocate misplaced unit tests. 2021-04-16 22:23:40 -07:00
modules async_wrapper more info on end (#74199) 2021-04-13 10:30:13 -04:00
parsing vault: Read stdin data as binary on python3 (#52229) 2020-12-09 09:46:32 +01:00
playbook [playbook/play.py] Increase error test coverage (#74217) 2021-04-13 11:22:02 -04:00
plugins [become] Fix solaris permissions regression 2021-04-19 20:28:57 -05:00
regex
template Do not treat AnsibleUndefined as being unsafe (#65202) 2019-11-25 15:06:29 +01:00
utils Relocate misplaced unit tests. 2021-04-16 22:23:40 -07:00
vars Remove empty setUp/tearDown/tearDownClass methods in test classes. 2019-11-06 08:14:29 -08:00
__init__.py
requirements.txt Remove unnecessary unit test requirements. 2020-03-23 11:14:21 -05:00
test_constants.py Remove some constants.py deprecated items (#70466) 2020-07-07 18:41:19 -05:00
test_context.py Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00