ansible/test/integration/targets/vyos_command/tests/cli/timeout.yaml
Nathaniel Case 2425374fdd
Actually move vyos tests to network_cli (#33710)
* Fix vyos on network_cli on python3

bytes do not have format() in Python3

* Push connection to tasks, with bonus connection=local test

* Run tests without explicit connection set

* Add/update START messages where appropriate
2017-12-13 14:30:24 -05:00

18 lines
415 B
YAML

---
- debug: msg="START cli/timeout.yaml on connection={{ ansible_connection }}"
- name: test bad condition
vyos_command:
commands:
- show version
wait_for:
- result[0] contains bad_value_string
register: result
ignore_errors: yes
- assert:
that:
- result.failed == true
- result.msg is defined
- debug: msg="END cli/timeout.yaml on connection={{ ansible_connection }}"