summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/wait_for
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2021-09-02 10:55:15 +0200
committerMatt Clay <matt@mystile.com>2021-10-14 20:52:06 +0200
commit7cf29ded9c6329757af05e9fdd2ff9341906103a (patch)
tree3081a601b82e19b1b5096e6cf89f300e1731f7c3 /test/integration/targets/wait_for
parentRemove incidental_win_dsc test. (diff)
downloadansible-7cf29ded9c6329757af05e9fdd2ff9341906103a.tar.xz
ansible-7cf29ded9c6329757af05e9fdd2ff9341906103a.zip
Intentional tests
ci_complete ci_coverage
Diffstat (limited to 'test/integration/targets/wait_for')
-rw-r--r--test/integration/targets/wait_for/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/targets/wait_for/tasks/main.yml b/test/integration/targets/wait_for/tasks/main.yml
index 67e077868e..8c73fbec90 100644
--- a/test/integration/targets/wait_for/tasks/main.yml
+++ b/test/integration/targets/wait_for/tasks/main.yml
@@ -175,3 +175,15 @@
- waitfor is successful
- waitfor is not changed
- "waitfor.port == {{ http_port }}"
+
+- name: test wait_for with delay
+ wait_for:
+ timeout: 2
+ delay: 2
+ register: waitfor
+
+- name: verify test wait_for with delay
+ assert:
+ that:
+ - waitfor is successful
+ - waitfor.elapsed >= 4