ansible/test/integration/targets/junos_config/tests/netconf/bad_action.yaml
Ganesh Nalawade 1c8c51d05c
Fix junos integration failures (#34571)
*  Add connection=netconf in individual roles for modules that run using netconf connection
plugin
*  Add connection=network_cli for junos_netconf and junos_command
at applicable places
2018-01-08 17:58:47 +05:30

16 lines
395 B
YAML

---
- debug: msg="START netconf/bad_action.yaml on connection={{ ansible_connection }}"
- name: configure single bad_action command
junos_config:
lines:
- 'invalid system foo'
provider: "{{ netconf }}"
register: result
ignore_errors: yes
- assert:
that:
- "result.failed == true"
- debug: msg="END netconf/bad_action.yaml on connection={{ ansible_connection }}"