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
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
..
_vendor transparent downstream vendoring (#69850) 5 years ago
ansible_test Overhaul ansible-test container management. 4 years ago
cli Clarify CLI version number as core version (#72287) 4 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
config Provide better decryption errors for single vault values (#72362) 4 years ago
errors Fix YAML error message when error is at the end of the file (#73241) 4 years ago
executor Use ArgumentSpecValidator in AnsibleModule (#73703) 4 years ago
galaxy add --offline option to galaxy collection verify (#74040) 4 years ago
inventory Clean up unit test boilerplate. 4 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 10 years ago
mock only add data when there is data to add (#54559) 4 years ago
module_utils Relocate misplaced unit tests. 4 years ago
modules async_wrapper more info on end (#74199) 4 years ago
parsing vault: Read stdin data as binary on python3 (#52229) 4 years ago
playbook [playbook/play.py] Increase error test coverage (#74217) 4 years ago
plugins [become] Fix solaris permissions regression 4 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 6 years ago
template Do not treat AnsibleUndefined as being unsafe (#65202) 5 years ago
utils Relocate misplaced unit tests. 4 years ago
vars Remove empty setUp/tearDown/tearDownClass methods in test classes. 5 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
requirements.txt Remove unnecessary unit test requirements. 5 years ago
test_constants.py Remove some constants.py deprecated items (#70466) 4 years ago
test_context.py Clean up unit test boilerplate. 4 years ago