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/uri/tasks
Martin Krizek eb29a662f6 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>
(cherry picked from commit 600c1e67b4)
7 months ago
..
ciphers.yml Allow selection of TLS/SSL ciphers (#78650) 3 years ago
install-socat-and-test-unix-socket.yml Remove py2 support from urls.py (#81880) 2 years ago
main.yml Miscellaneous integration test fixes (#84871) 10 months ago
redirect-all.yml Integration test cleanup (#84763) 10 months ago
redirect-none.yml uri: form location correctly from relative redirect (#84541) 10 months ago
redirect-safe.yml uri: form location correctly from relative redirect (#84541) 10 months ago
redirect-urllib2.yml Integration test cleanup (#84763) 10 months ago
return-content.yml Add missing newlines to YAML files (#80031) 3 years ago
unexpected-failures.yml Exceptions clean up (#85176) 7 months ago
unix-socket.yml Typo fixes and other bits and bobs (#83672) 1 year ago
use_gssapi.yml Fix FreeBSD HTTP Kerberos setup (#72595) 5 years ago
use_netrc.yml ansible-test - Update http-test-container (#83272) 2 years ago