summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/iosxr_interface
diff options
context:
space:
mode:
authorKedar Kekan <4506537+kedarX@users.noreply.github.com>2018-01-24 15:16:27 +0100
committerGitHub <noreply@github.com>2018-01-24 15:16:27 +0100
commit56eeaf1b2f8dec03b6ed24041e307a44430a13c7 (patch)
tree57092a7adb28b4f37b6bc5fcd0189a6d2e3dc6a5 /test/integration/targets/iosxr_interface
parentFix terminal prompt re in ios and iosxr to match newline (#34585) (diff)
downloadansible-56eeaf1b2f8dec03b6ed24041e307a44430a13c7.tar.xz
ansible-56eeaf1b2f8dec03b6ed24041e307a44430a13c7.zip
Changes to enable network_cli and netconf on iosxr integration tests. (#35269)
* * Changes to enable network_cli and netconf on modules. * limits connection local for single TC per playbook. * * adds a note on why only 1 TC is executed with connection: local
Diffstat (limited to 'test/integration/targets/iosxr_interface')
-rw-r--r--test/integration/targets/iosxr_interface/tasks/cli.yaml2
-rw-r--r--test/integration/targets/iosxr_interface/tasks/netconf.yaml2
-rw-r--r--test/integration/targets/iosxr_interface/tests/netconf/basic.yaml4
3 files changed, 7 insertions, 1 deletions
diff --git a/test/integration/targets/iosxr_interface/tasks/cli.yaml b/test/integration/targets/iosxr_interface/tasks/cli.yaml
index 890d3acf3e..97dfa2c3f7 100644
--- a/test/integration/targets/iosxr_interface/tasks/cli.yaml
+++ b/test/integration/targets/iosxr_interface/tasks/cli.yaml
@@ -15,6 +15,8 @@
loop_control:
loop_var: test_case_to_run
+# Only one of the Testcase would be run to check if `connection: local`
+# is established. Full suite is run with `connection:network_cli` or `connection:netconf`
- name: run test case (connection=local)
include: "{{ test_case_to_run }} ansible_connection=local"
with_first_found: "{{ test_items }}"
diff --git a/test/integration/targets/iosxr_interface/tasks/netconf.yaml b/test/integration/targets/iosxr_interface/tasks/netconf.yaml
index 2b284b5886..5e492412ad 100644
--- a/test/integration/targets/iosxr_interface/tasks/netconf.yaml
+++ b/test/integration/targets/iosxr_interface/tasks/netconf.yaml
@@ -15,6 +15,8 @@
loop_control:
loop_var: test_case_to_run
+# Only one of the Testcase would be run to check if `connection: local`
+# is established. Full suite is run with `connection:network_cli` or `connection:netconf`
- name: run test case (connection=local)
include: "{{ test_case_to_run }} ansible_connection=local"
with_items: "{{ test_items }}"
diff --git a/test/integration/targets/iosxr_interface/tests/netconf/basic.yaml b/test/integration/targets/iosxr_interface/tests/netconf/basic.yaml
index 515f1db39b..beb2c2d70d 100644
--- a/test/integration/targets/iosxr_interface/tests/netconf/basic.yaml
+++ b/test/integration/targets/iosxr_interface/tests/netconf/basic.yaml
@@ -3,7 +3,9 @@
- name: Setup interface
iosxr_interface:
- name: GigabitEthernet0/0/0/1
+ aggregate:
+ - name: GigabitEthernet0/0/0/0
+ - name: GigabitEthernet0/0/0/1
state: absent
provider: "{{ netconf }}"
register: result