summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/targets/fetch/roles/fetch_tests/tasks/failures.yml10
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