mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 16:53:11 +00:00
* Fix over-byte * Update ios tests to call `provider` To continue to support testing `connection: local` * Fix command dict handling in ios_user * Clean up unit tests, too
29 lines
564 B
YAML
29 lines
564 B
YAML
---
|
|
- debug: msg="START cli/invalid.yaml on connection={{ ansible_connection }}"
|
|
|
|
- name: run invalid command
|
|
ios_command:
|
|
commands: show foo
|
|
provider: "{{ cli }}"
|
|
register: result
|
|
ignore_errors: yes
|
|
|
|
- assert:
|
|
that:
|
|
- "result.failed"
|
|
|
|
- name: run commands that include invalid command
|
|
ios_command:
|
|
commands:
|
|
- show version
|
|
- show foo
|
|
provider: "{{ cli }}"
|
|
register: result
|
|
ignore_errors: yes
|
|
|
|
- assert:
|
|
that:
|
|
- "result.failed"
|
|
|
|
- debug: msg="END cli/invalid.yaml on connection={{ ansible_connection }}"
|