summaryrefslogtreecommitdiff
path: root/test/integration/targets/vyos_command/tests/cli/cli_command.yaml
diff options
context:
space:
mode:
authorCaptTrews <capttrews@gmail.com>2019-08-29 14:21:30 +0000
committerCaptTrews <capttrews@gmail.com>2019-08-29 14:21:30 +0000
commitae8514ce0289ee2096a3a9f54be6a4654153c880 (patch)
tree2d9a958c135c5ec4cad86650e8f7d7ef173d33c2 /test/integration/targets/vyos_command/tests/cli/cli_command.yaml
parent59af486ab07108815ad1774205959fa8287d6e53 (diff)
downloadvyos.vyos-ae8514ce0289ee2096a3a9f54be6a4654153c880.tar.gz
vyos.vyos-ae8514ce0289ee2096a3a9f54be6a4654153c880.zip
Updated from network content collector
Signed-off-by: CaptTrews <capttrews@gmail.com>
Diffstat (limited to 'test/integration/targets/vyos_command/tests/cli/cli_command.yaml')
-rw-r--r--test/integration/targets/vyos_command/tests/cli/cli_command.yaml41
1 files changed, 0 insertions, 41 deletions
diff --git a/test/integration/targets/vyos_command/tests/cli/cli_command.yaml b/test/integration/targets/vyos_command/tests/cli/cli_command.yaml
deleted file mode 100644
index 08a7675b..00000000
--- a/test/integration/targets/vyos_command/tests/cli/cli_command.yaml
+++ /dev/null
@@ -1,41 +0,0 @@
----
-- debug:
- msg: "START cli/cli_command.yaml on connection={{ ansible_connection }}"
-
-- block:
- - name: get output for single command
- network.cli.cli_command:
- command: show version
- register: result
-
- - assert:
- that:
- - "result.changed == false"
- - "result.stdout is defined"
-
- - name: send invalid command
- network.cli.cli_command:
- command: 'show foo'
- register: result
- ignore_errors: yes
-
- - assert:
- that:
- - "result.failed == true"
- - "result.msg is defined"
- when: "ansible_connection == 'network_cli'"
-
-- block:
- - name: test failure for local connection
- network.cli.cli_command:
- command: show version
- register: result
- ignore_errors: yes
-
- - assert:
- that:
- - 'result.failed == true'
- - "'Connection type local is not valid for this module' in result.msg"
- when: "ansible_connection == 'local'"
-
-- debug: msg="END cli/cli_command.yaml on connection={{ ansible_connection }}"