Test the delay option in wait_for_connection.
This commit is contained in:
parent
6e1a59174a
commit
a19ae28326
1 changed files with 13 additions and 0 deletions
|
@ -4,6 +4,19 @@
|
||||||
sleep: 1
|
sleep: 1
|
||||||
timeout: 10
|
timeout: 10
|
||||||
|
|
||||||
|
- name: Test normal connection to target node with delay
|
||||||
|
wait_for_connection:
|
||||||
|
connect_timeout: 5
|
||||||
|
sleep: 1
|
||||||
|
timeout: 10
|
||||||
|
delay: 3
|
||||||
|
register: result
|
||||||
|
|
||||||
|
- name: Verify delay was honored
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- result.elapsed >= 3
|
||||||
|
|
||||||
- name: Use invalid parameter
|
- name: Use invalid parameter
|
||||||
wait_for_connection:
|
wait_for_connection:
|
||||||
foo: bar
|
foo: bar
|
||||||
|
|
Loading…
Add table
Reference in a new issue