diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2018-06-05 07:37:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 07:37:24 -0400 |
commit | 02135d52785ae53007eac5b43c62858163cd020a (patch) | |
tree | defee819502a449892fb0d6aafef76c349e8b0a7 /test/integration/targets/nxos_igmp_snooping | |
parent | 6349932fffeced70d49067686a2c2673f141d226 (diff) | |
download | ansible-02135d52785ae53007eac5b43c62858163cd020a.tar.gz |
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_igmp_snooping')
-rw-r--r-- | test/integration/targets/nxos_igmp_snooping/tasks/cli.yaml | 10 | ||||
-rw-r--r-- | test/integration/targets/nxos_igmp_snooping/tasks/nxapi.yaml | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/test/integration/targets/nxos_igmp_snooping/tasks/cli.yaml b/test/integration/targets/nxos_igmp_snooping/tasks/cli.yaml index edbff7dfaf..9b62eaba65 100644 --- a/test/integration/targets/nxos_igmp_snooping/tasks/cli.yaml +++ b/test/integration/targets/nxos_igmp_snooping/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_igmp_snooping/tasks/nxapi.yaml b/test/integration/targets/nxos_igmp_snooping/tasks/nxapi.yaml index 653bcfefe9..04c99602e6 100644 --- a/test/integration/targets/nxos_igmp_snooping/tasks/nxapi.yaml +++ b/test/integration/targets/nxos_igmp_snooping/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 |