ansible/test/integration/targets/junos_config/tests/netconf/invalid.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

29 lines
663 B
YAML

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