summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/wait_for
diff options
context:
space:
mode:
authorSloane Hertel <shertel@redhat.com>2020-10-06 18:10:03 +0200
committerGitHub <noreply@github.com>2020-10-06 18:10:03 +0200
commit960e4c0809a586d1232f67153542036450b3fa71 (patch)
tree098f304a3a7ea7b891629b597025c696fd5dd4c5 /test/integration/targets/wait_for
parentbasic: Handle exception in default selector (#72101) (diff)
downloadansible-960e4c0809a586d1232f67153542036450b3fa71.tar.xz
ansible-960e4c0809a586d1232f67153542036450b3fa71.zip
Add intentional coverage for incidental_ec2_instance (#72028)
* Add a test suite for module_utils.common.dict_transformations * ci_complete ci_coverage Add a wait_for test using delegate_to * Remove incidental_ec2_instance * Remove unused test support modules * Requested changes ci_complete ci_coverage * Oops, put everything back to test coverage again ci_complete ci_coverage * Remove incidental_ec2_instance tests and supporting modules
Diffstat (limited to 'test/integration/targets/wait_for')
-rw-r--r--test/integration/targets/wait_for/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/wait_for/tasks/main.yml b/test/integration/targets/wait_for/tasks/main.yml
index 4d1c9f319d..5522030551 100644
--- a/test/integration/targets/wait_for/tasks/main.yml
+++ b/test/integration/targets/wait_for/tasks/main.yml
@@ -1,4 +1,15 @@
---
+- name: test wait_for with delegate_to
+ wait_for:
+ timeout: 2
+ delegate_to: localhost
+ register: waitfor
+
+- assert:
+ that:
+ - waitfor is successful
+ - waitfor.elapsed >= 2
+
- name: setup create a directory to serve files from
file:
dest: "{{ files_dir }}"