diff options
author | John R Barker <john@johnrbarker.com> | 2016-10-28 19:50:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-28 19:50:29 +0100 |
commit | e0cc7b34151def2ce0b08dbe3cb995107a2d6a0f (patch) | |
tree | 09df24fe1a91723d5fe716d8b9da843b383d5204 /test/integration/targets/dellos10_command/tests/cli/invalid.yaml | |
parent | 4a067c3f502aa2254d8f35d8598895df8f3d1365 (diff) | |
download | ansible-e0cc7b34151def2ce0b08dbe3cb995107a2d6a0f.tar.gz |
Migrate Network Tests into ansible/ansible (#18233)
* Docs Networking tests
* Copy networking tests from test-network-modules
* Networking transport settings - group_vars
* Network playbooks
* Debug should be off by default
* Update nxos.yaml
* Remove items from top level
* Use dependencies, not pre-tasks
* Remove trailing blank lines
* Remove backup files
* newlines
Diffstat (limited to 'test/integration/targets/dellos10_command/tests/cli/invalid.yaml')
-rw-r--r-- | test/integration/targets/dellos10_command/tests/cli/invalid.yaml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/integration/targets/dellos10_command/tests/cli/invalid.yaml b/test/integration/targets/dellos10_command/tests/cli/invalid.yaml new file mode 100644 index 0000000000..14b24b4cbc --- /dev/null +++ b/test/integration/targets/dellos10_command/tests/cli/invalid.yaml @@ -0,0 +1,28 @@ +--- +- debug: msg="START cli/invalid.yaml" + +- name: run invalid command + dellos10_command: + commands: ['show foo'] + provider: "{{ cli }}" + register: result + ignore_errors: yes + +- assert: + that: + - "'Error: Unrecognized command' in result.stdout" + +- name: run commands that include invalid command + dellos10_command: + commands: + - show version + - show foo + provider: "{{ cli }}" + register: result + ignore_errors: yes + +- assert: + that: + - "'Error: Unrecognized command' in result.stdout" + +- debug: msg="END cli/invalid.yaml" |