diff options
author | Ansible Core Team <info@ansible.com> | 2020-03-09 09:40:36 +0000 |
---|---|---|
committer | Ansible Core Team <info@ansible.com> | 2020-03-09 09:40:36 +0000 |
commit | 6ea22818476eb22d761a958b27e01ee2dc1b9a55 (patch) | |
tree | f42ee7ae78f39caa05fe414b4e3e82b2031554f7 /test/integration/targets/dellos6_command/tests/cli | |
parent | 91e8679f56be4d8fd78bb3e1b2d5da53f874f753 (diff) | |
download | ansible-6ea22818476eb22d761a958b27e01ee2dc1b9a55.tar.gz |
Migrated to dellemc_networking.os6
Diffstat (limited to 'test/integration/targets/dellos6_command/tests/cli')
5 files changed, 0 insertions, 116 deletions
diff --git a/test/integration/targets/dellos6_command/tests/cli/bad_operator.yaml b/test/integration/targets/dellos6_command/tests/cli/bad_operator.yaml deleted file mode 100644 index 1a8f6a2826..0000000000 --- a/test/integration/targets/dellos6_command/tests/cli/bad_operator.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -- debug: msg="START cli/bad_operator.yaml" - -- name: test bad operator - dellos6_command: - commands: - - show version - - show interfaces GigabitEthernet 1/0/1 - 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" diff --git a/test/integration/targets/dellos6_command/tests/cli/contains.yaml b/test/integration/targets/dellos6_command/tests/cli/contains.yaml deleted file mode 100644 index b9978ea867..0000000000 --- a/test/integration/targets/dellos6_command/tests/cli/contains.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -- 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" diff --git a/test/integration/targets/dellos6_command/tests/cli/invalid.yaml b/test/integration/targets/dellos6_command/tests/cli/invalid.yaml deleted file mode 100644 index 036e54d6e5..0000000000 --- a/test/integration/targets/dellos6_command/tests/cli/invalid.yaml +++ /dev/null @@ -1,28 +0,0 @@ ---- -- debug: msg="START cli/invalid.yaml" - -- name: run invalid command - dellos6_command: - commands: ['show foo'] - provider: "{{ cli }}" - register: result - ignore_errors: yes - -- assert: - that: - - "result.failed" - -- name: run commands that include invalid command - dellos6_command: - commands: - - show version - - show foo - provider: "{{ cli }}" - register: result - ignore_errors: yes - -- assert: - that: - - "result.failed" - -- debug: msg="END cli/invalid.yaml" diff --git a/test/integration/targets/dellos6_command/tests/cli/output.yaml b/test/integration/targets/dellos6_command/tests/cli/output.yaml deleted file mode 100644 index 5d0ea281de..0000000000 --- a/test/integration/targets/dellos6_command/tests/cli/output.yaml +++ /dev/null @@ -1,29 +0,0 @@ ---- -- debug: msg="START cli/output.yaml" - -- name: get output for single command - dellos6_command: - commands: ['show version'] - provider: "{{ cli }}" - register: result - -- assert: - that: - - "result.changed == false" - - "result.stdout is defined" - -- name: get output for multiple commands - dellos6_command: - commands: - - show version - - show interfaces - provider: "{{ cli }}" - register: result - -- assert: - that: - - "result.changed == false" - - "result.stdout is defined" - - "result.stdout | length == 2" - -- debug: msg="END cli/output.yaml" diff --git a/test/integration/targets/dellos6_command/tests/cli/timeout.yaml b/test/integration/targets/dellos6_command/tests/cli/timeout.yaml deleted file mode 100644 index 046a759abe..0000000000 --- a/test/integration/targets/dellos6_command/tests/cli/timeout.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -- debug: msg="START cli/timeout.yaml" - -- name: test bad condition - dellos6_command: - commands: - - show version - wait_for: - - "result[0] contains bad_value_string" - provider: "{{ cli }}" - register: result - ignore_errors: yes - -- assert: - that: - - "result.failed == true" - - "result.msg is defined" - -- debug: msg="END cli/timeout.yaml" |