summaryrefslogtreecommitdiff
path: root/test/integration/targets/junos_interface
diff options
context:
space:
mode:
authorGanesh Nalawade <ganesh634@gmail.com>2018-01-08 17:58:47 +0530
committerGitHub <noreply@github.com>2018-01-08 17:58:47 +0530
commit1c8c51d05c1ca5b77da41aed5871d83b6a225813 (patch)
tree285dc2302a13a0c84a77956f4daa89b6a64549a7 /test/integration/targets/junos_interface
parent5e6b2495c045961b73a11a31b71b971c16bea9c7 (diff)
downloadansible-1c8c51d05c1ca5b77da41aed5871d83b6a225813.tar.gz
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
Diffstat (limited to 'test/integration/targets/junos_interface')
-rw-r--r--test/integration/targets/junos_interface/tasks/netconf.yaml10
-rw-r--r--test/integration/targets/junos_interface/tests/netconf/basic.yaml4
-rw-r--r--test/integration/targets/junos_interface/tests/netconf/intent.yaml4
3 files changed, 14 insertions, 4 deletions
diff --git a/test/integration/targets/junos_interface/tasks/netconf.yaml b/test/integration/targets/junos_interface/tasks/netconf.yaml
index 1286b35422..92fc7092cd 100644
--- a/test/integration/targets/junos_interface/tasks/netconf.yaml
+++ b/test/integration/targets/junos_interface/tasks/netconf.yaml
@@ -9,8 +9,14 @@
- name: set test_items
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
-- name: run test case
- include: "{{ test_case_to_run }}"
+- name: run test case (connection=netconf)
+ include: "{{ test_case_to_run }} ansible_connection=netconf"
+ with_items: "{{ test_items }}"
+ loop_control:
+ loop_var: test_case_to_run
+
+- name: run test case (connection=local)
+ include: "{{ test_case_to_run }} ansible_connection=local"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run
diff --git a/test/integration/targets/junos_interface/tests/netconf/basic.yaml b/test/integration/targets/junos_interface/tests/netconf/basic.yaml
index a8cd0a5a53..ff2990db74 100644
--- a/test/integration/targets/junos_interface/tests/netconf/basic.yaml
+++ b/test/integration/targets/junos_interface/tests/netconf/basic.yaml
@@ -1,5 +1,5 @@
---
-- debug: msg="START junos_interface netconf/basic.yaml"
+- debug: msg="START junos_interface netconf/basic.yaml on connection={{ ansible_connection }}"
- name: setup remove interface
junos_interface:
@@ -295,3 +295,5 @@
- assert:
that:
- 'result.changed == false'
+
+- debug: msg="END junos_interface netconf/basic.yaml on connection={{ ansible_connection }}"
diff --git a/test/integration/targets/junos_interface/tests/netconf/intent.yaml b/test/integration/targets/junos_interface/tests/netconf/intent.yaml
index b99f72ce21..91104afbde 100644
--- a/test/integration/targets/junos_interface/tests/netconf/intent.yaml
+++ b/test/integration/targets/junos_interface/tests/netconf/intent.yaml
@@ -1,5 +1,5 @@
---
-- debug: msg="START junos_interface netconf/intent.yaml"
+- debug: msg="START junos_interface netconf/intent.yaml on connection={{ ansible_connection }}"
- name: get facts
junos_facts:
@@ -92,3 +92,5 @@
- assert:
that:
- "result.failed == false"
+
+- debug: msg="END junos_interface netconf/intent.yaml on connection={{ ansible_connection }}"