mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-21 16:21:12 +00:00
* 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
29 lines
568 B
YAML
Executable File
29 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"
|