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