summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/nxos_hsrp
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2018-06-05 13:37:24 +0200
committerGitHub <noreply@github.com>2018-06-05 13:37:24 +0200
commit02135d52785ae53007eac5b43c62858163cd020a (patch)
treedefee819502a449892fb0d6aafef76c349e8b0a7 /test/integration/targets/nxos_hsrp
parentAdd support for loadbalance_loadbased to DVS portgroup teaming policy (#40242) (diff)
downloadansible-02135d52785ae53007eac5b43c62858163cd020a.tar.xz
ansible-02135d52785ae53007eac5b43c62858163cd020a.zip
Nxos test reorganize (#41089)
* Remove local from most cli tests * Readd local tests to nxapi until httpapi passes
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