mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
2f46f8f944
* Support for network_cli plugin and tests * Fixed ansible-test * issues * Fixed Pylint warning * Fixed the sanity test errors * Fix YAMLlinter issue - removed blank spaces * Fixed Python 3 failures * Fixed the PEP8 issue * Fix sanity --test validate-modules * Reverted the changes to the doc fragments
28 lines
568 B
YAML
Executable file
28 lines
568 B
YAML
Executable file
---
|
|
- 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"
|