mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-22 00:00:22 -07:00
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
This commit is contained in:
parent
5e6b2495c0
commit
1c8c51d05c
69 changed files with 276 additions and 123 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- debug: msg="START netconf_text/bad_operator.yaml"
|
||||
- debug: msg="START netconf_text/bad_operator.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
- name: test bad operator with text encoding
|
||||
junos_command:
|
||||
|
@ -18,4 +18,4 @@
|
|||
- "result.failed == true"
|
||||
- "result.msg is defined"
|
||||
|
||||
- debug: msg="END netconf_text/bad_operator.yaml"
|
||||
- debug: msg="END netconf_text/bad_operator.yaml on connection={{ ansible_connection }}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- debug: msg="START netconf_text/contains.yaml"
|
||||
- debug: msg="START netconf_text/contains.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
- name: test contains operator with text encoding
|
||||
junos_command:
|
||||
|
@ -18,4 +18,4 @@
|
|||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- debug: msg="END netconf_text/contains.yaml"
|
||||
- debug: msg="END netconf_text/contains.yaml on connection={{ ansible_connection }}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- debug: msg="START netconf_text/invalid.yaml"
|
||||
- debug: msg="START netconf_text/invalid.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
- name: run invalid command
|
||||
junos_command:
|
||||
|
@ -31,4 +31,4 @@
|
|||
- "result.failed == true"
|
||||
- "result.msg is defined"
|
||||
|
||||
- debug: msg="END netconf_text/invalid.yaml"
|
||||
- debug: msg="END netconf_text/invalid.yaml on connection={{ ansible_connection }}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- debug: msg="START netconf_text/output.yaml"
|
||||
- debug: msg="START netconf_text/output.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
- name: get output for single command
|
||||
junos_command:
|
||||
|
@ -59,4 +59,4 @@
|
|||
- "result.stdout is defined"
|
||||
- "result.stdout_lines is defined"
|
||||
|
||||
- debug: msg="END netconf_text/output.yaml"
|
||||
- debug: msg="END netconf_text/output.yaml on connection={{ ansible_connection }}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- debug: msg="START netconf_text/timeout.yaml"
|
||||
- debug: msg="START netconf_text/timeout.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
- name: test bad condition
|
||||
junos_command:
|
||||
|
@ -17,4 +17,4 @@
|
|||
- "result.failed == true"
|
||||
- "result.msg is defined"
|
||||
|
||||
- debug: msg="END netconf_text/timeout.yaml"
|
||||
- debug: msg="END netconf_text/timeout.yaml on connection={{ ansible_connection }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue