ansible/test/integration/targets/iosxr_command/tests/cli/invalid.yaml
John R Barker 553b6151ad iosxr tests: Initial work for 2.3 (#20883)
Ensure a loopback device exists for testing
Remove provider:
Default is to run task on Network, device, use delegate_to: localhost for local tasks.
2017-01-31 19:10:14 +00:00

26 lines
442 B
YAML

---
- debug: msg="START cli/invalid.yaml"
- name: run invalid command
iosxr_command:
commands: ['show foo']
register: result
ignore_errors: yes
- assert:
that:
- "result.failed"
- name: run commands that include invalid command
iosxr_command:
commands:
- show version
- show foo
register: result
ignore_errors: yes
- assert:
that:
- "result.failed"
- debug: msg="END cli/invalid.yaml"