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