From a330106b2e2c811db49477d71b8a472c964d2aeb Mon Sep 17 00:00:00 2001 From: "Bradley A. Thornton" Date: Thu, 8 Aug 2019 12:29:41 -0700 Subject: fixed --- .../targets/vyos_command/tests/cli/timeout.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/integration/targets/vyos_command/tests/cli/timeout.yaml (limited to 'test/integration/targets/vyos_command/tests/cli/timeout.yaml') 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 }}" -- cgit v1.2.3