diff options
| author | Bradley A. Thornton <bthornto@thethorntons.net> | 2019-08-08 12:29:41 -0700 |
|---|---|---|
| committer | Bradley A. Thornton <bthornto@thethorntons.net> | 2019-08-08 12:29:41 -0700 |
| commit | a330106b2e2c811db49477d71b8a472c964d2aeb (patch) | |
| tree | ae05d893d8bed2d04db942d4c103996b26b10be7 /test/integration/targets/vyos_command/tests/cli/timeout.yaml | |
| parent | 5472435af823398fc63e049d7efe0938b532f3c9 (diff) | |
| download | vyos.vyos-a330106b2e2c811db49477d71b8a472c964d2aeb.tar.gz vyos.vyos-a330106b2e2c811db49477d71b8a472c964d2aeb.zip | |
fixed
Diffstat (limited to 'test/integration/targets/vyos_command/tests/cli/timeout.yaml')
| -rw-r--r-- | test/integration/targets/vyos_command/tests/cli/timeout.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/targets/vyos_command/tests/cli/timeout.yaml b/test/integration/targets/vyos_command/tests/cli/timeout.yaml new file mode 100644 index 00000000..e4716ed6 --- /dev/null +++ b/test/integration/targets/vyos_command/tests/cli/timeout.yaml @@ -0,0 +1,18 @@ +--- +- debug: msg="START cli/timeout.yaml on connection={{ ansible_connection }}" + +- name: test bad condition + vyos.vyos.vyos_command: + commands: + - show version + wait_for: + - result[0] contains bad_value_string + register: result + ignore_errors: yes + +- assert: + that: + - result.failed == true + - result.msg is defined + +- debug: msg="END cli/timeout.yaml on connection={{ ansible_connection }}" |
