summaryrefslogtreecommitdiff
path: root/test/integration/targets/vyos_command/tests/cli/bad_operator.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/vyos_command/tests/cli/bad_operator.yaml')
-rw-r--r--test/integration/targets/vyos_command/tests/cli/bad_operator.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/integration/targets/vyos_command/tests/cli/bad_operator.yaml b/test/integration/targets/vyos_command/tests/cli/bad_operator.yaml
new file mode 100644
index 0000000000..bff9b5cedd
--- /dev/null
+++ b/test/integration/targets/vyos_command/tests/cli/bad_operator.yaml
@@ -0,0 +1,20 @@
+---
+- debug: msg="START cli/bad_operator.yaml"
+
+- name: test bad operator
+ vyos_command:
+ commands:
+ - show version
+ - show interfaces
+ wait_for:
+ - result[0] is 'VyOS'
+ provider: "{{ cli }}"
+ register: result
+ ignore_errors: yes
+
+- assert:
+ that:
+ - result.failed == true
+ - result.msg is defined
+
+- debug: msg="END cli/bad_operator.yaml"