e0cc7b3415
* Docs Networking tests * Copy networking tests from test-network-modules * Networking transport settings - group_vars * Network playbooks * Debug should be off by default * Update nxos.yaml * Remove items from top level * Use dependencies, not pre-tasks * Remove trailing blank lines * Remove backup files * newlines
29 lines
579 B
YAML
29 lines
579 B
YAML
---
|
|
- debug: msg="START netconf/invalid.yaml"
|
|
|
|
- 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 }}'
|
|
- 'set system foo'
|
|
provider: "{{ netconf }}"
|
|
register: result
|
|
ignore_errors: yes
|
|
|
|
- assert:
|
|
that:
|
|
- "result.failed == true"
|
|
|
|
- debug: msg="END netconf/invalid.yaml"
|