diff options
author | Matt Martz <matt@sivel.net> | 2023-06-06 17:03:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 17:03:22 +0200 |
commit | aa67d544fcc51673b4015b3843cb6cf827e7551c (patch) | |
tree | adc5920ba285a21942b976d3cbb637cd437df9e1 /test/integration/targets/fetch | |
parent | Update COLLECTIONS_8.rst (#80962) (diff) | |
download | ansible-aa67d544fcc51673b4015b3843cb6cf827e7551c.tar.xz ansible-aa67d544fcc51673b4015b3843cb6cf827e7551c.zip |
Handle unreachable errors in fetch properly. Fixes #27816 (#80952)
Diffstat (limited to 'test/integration/targets/fetch')
-rw-r--r-- | test/integration/targets/fetch/roles/fetch_tests/tasks/failures.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/targets/fetch/roles/fetch_tests/tasks/failures.yml b/test/integration/targets/fetch/roles/fetch_tests/tasks/failures.yml index 8a6b5b7b36..d0bf9bdc42 100644 --- a/test/integration/targets/fetch/roles/fetch_tests/tasks/failures.yml +++ b/test/integration/targets/fetch/roles/fetch_tests/tasks/failures.yml @@ -28,6 +28,15 @@ register: failed_fetch_dest_dir ignore_errors: true +- name: Test unreachable + fetch: + src: "{{ remote_tmp_dir }}/orig" + dest: "{{ output_dir }}" + register: unreachable_fetch + ignore_unreachable: true + vars: + ansible_user: wrong + - name: Ensure fetch failed assert: that: @@ -39,3 +48,4 @@ - failed_fetch_no_access.msg is search('file is not readable') - failed_fetch_dest_dir is failed - failed_fetch_dest_dir.msg is search('dest is an existing directory') + - unreachable_fetch is unreachable |