summaryrefslogtreecommitdiff
path: root/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml')
-rw-r--r--test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml b/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml
new file mode 100644
index 0000000000..d3c571e90b
--- /dev/null
+++ b/test/integration/targets/junos_command/tests/netconf_xml/lessthanorequal.yaml
@@ -0,0 +1,38 @@
+---
+- debug: msg="START netconf_xml/lessthanorequal.yaml"
+
+- name: test le operator
+ junos_command:
+ commands:
+ - show version
+ - show interfaces fxp0
+ format: xml
+ wait_for:
+ - "result[1].interface-information.physical-interface.mtu le 1514"
+ provider: "{{ netconf }}"
+ register: result
+
+- assert:
+ that:
+ - "result.changed == false"
+ - "result.stdout is defined"
+ - "result.stdout_lines is defined"
+
+- name: test <= operator
+ junos_command:
+ commands:
+ - show version
+ - show interfaces fxp0
+ format: xml
+ wait_for:
+ - "result[1].interface-information.physical-interface.mtu <= 1514"
+ provider: "{{ netconf }}"
+ register: result
+
+- assert:
+ that:
+ - "result.changed == false"
+ - "result.stdout is defined"
+ - "result.stdout_lines is defined"
+
+- debug: msg="END netconf_xml/lessthanorequal.yaml"