diff options
Diffstat (limited to 'test/integration/targets/eos_command/tests/cli/lessthanorequal.yaml')
-rw-r--r-- | test/integration/targets/eos_command/tests/cli/lessthanorequal.yaml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/integration/targets/eos_command/tests/cli/lessthanorequal.yaml b/test/integration/targets/eos_command/tests/cli/lessthanorequal.yaml new file mode 100644 index 0000000000..35085e62ee --- /dev/null +++ b/test/integration/targets/eos_command/tests/cli/lessthanorequal.yaml @@ -0,0 +1,34 @@ +--- +- debug: msg="START cli/lessthanorequal.yaml" + +- name: test le operator + eos_command: + commands: + - show version + - show interfaces Management1 | json + wait_for: + - "result[1].interfaces.Management1.mtu le 1600" + provider: "{{ cli }}" + register: result + +- assert: + that: + - "result.changed == false" + - "result.stdout is defined" + +- name: test <= operator + eos_command: + commands: + - show version + - show interfaces Management1 | json + wait_for: + - "result[1].interfaces.Management1.mtu <= 1600" + provider: "{{ cli }}" + register: result + +- assert: + that: + - "result.changed == false" + - "result.stdout is defined" + +- debug: msg="END cli/lessthanorequal.yaml" |