From ae8514ce0289ee2096a3a9f54be6a4654153c880 Mon Sep 17 00:00:00 2001 From: CaptTrews Date: Thu, 29 Aug 2019 14:21:30 +0000 Subject: Updated from network content collector Signed-off-by: CaptTrews --- .../vyos_command/tests/cli/cli_command.yaml | 41 ---------------------- 1 file changed, 41 deletions(-) delete mode 100644 test/integration/targets/vyos_command/tests/cli/cli_command.yaml (limited to 'test/integration/targets/vyos_command/tests/cli/cli_command.yaml') 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 }}" -- cgit v1.2.3