summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/nxos_hsrp
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/nxos_hsrp')
-rw-r--r--test/integration/targets/nxos_hsrp/tasks/cli.yaml10
-rw-r--r--test/integration/targets/nxos_hsrp/tasks/nxapi.yaml8
2 files changed, 9 insertions, 9 deletions
diff --git a/test/integration/targets/nxos_hsrp/tasks/cli.yaml b/test/integration/targets/nxos_hsrp/tasks/cli.yaml
index edbff7dfaf..9b62eaba65 100644
--- a/test/integration/targets/nxos_hsrp/tasks/cli.yaml
+++ b/test/integration/targets/nxos_hsrp/tasks/cli.yaml
@@ -1,5 +1,5 @@
---
-- name: collect common cli test cases
+- name: collect common test cases
find:
paths: "{{ role_path }}/tests/common"
patterns: "{{ testcase }}.yaml"
@@ -21,13 +21,7 @@
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
- name: run test cases (connection=network_cli)
- include: "{{ test_case_to_run }} ansible_connection=network_cli connection={}"
+ include: "{{ test_case_to_run }} ansible_connection=network_cli connection={{ cli }}"
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 connection={{ cli }}"
- with_first_found: "{{ test_items }}"
- loop_control:
- loop_var: test_case_to_run
diff --git a/test/integration/targets/nxos_hsrp/tasks/nxapi.yaml b/test/integration/targets/nxos_hsrp/tasks/nxapi.yaml
index 653bcfefe9..04c99602e6 100644
--- a/test/integration/targets/nxos_hsrp/tasks/nxapi.yaml
+++ b/test/integration/targets/nxos_hsrp/tasks/nxapi.yaml
@@ -21,7 +21,13 @@
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
- name: run test cases (connection=httpapi)
- include: "{{ test_case_to_run }} ansible_connection=httpapi"
+ include: "{{ test_case_to_run }} ansible_connection=httpapi connection={{ nxapi }}"
+ with_items: "{{ test_items }}"
+ loop_control:
+ loop_var: test_case_to_run
+
+- name: run test cases (connection=local)
+ include: "{{ test_case_to_run }} ansible_connection=local connection={{ nxapi }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run