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/integration/targets/fetch
Martin Krizek 600c1e67b4
Exceptions clean up (#85176)
* replace usage of `IOError` as it is an alias to `OSError`
* replace usage of `socket.error` as it is an alias to `OSError`
* use subclasses of `OSError` rather than inspecting `errno`s
* utilize `exist_ok` parameter of `os.makedirs` rather than ignoring
  `FileExistsError`

Make the following changes to the exception handling this patch already
updates to be consistent with the new code:
* use `ex` as a name for exception being handled
* use `from ex` when re-raising exception for additional context
* use f-strings and `!r` for quoting
* pass exceptions to the `exception` parameter of `fail_json`
* use `display.error_as_warning` rather than passing stringified
  exception into `display.warning`

Co-authored-by: Matt Clay <matt@mystile.com>
6 months ago
..
injection Typo fixes and other bits and bobs (#83672) 1 year ago
roles/fetch_tests Exceptions clean up (#85176) 6 months ago
aliases ansible-test - split controller/target testing (#75605) 4 years ago
cleanup.yml deprecate `_remote_checksum()` and remove use in fetch (#74848) 5 years ago
run_fetch_tests.yml fixed fetch traversal from slurp (#68720) 6 years ago
runme.sh Typo fixes and other bits and bobs (#83672) 1 year ago
setup_unreadable_test.yml Fix fetch integration test. (#75661) 4 years ago
test_unreadable_with_stat.yml Fix fetch integration test. (#75661) 4 years ago