mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
be89822bb5
* deprecate nxos_portchannel Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * Add nxos_linkagg DI module Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * remove nxos_portchannel unit test * fix syntax issues * fix ansible-doc failure * update nxos_portchannel unittest * minor fixes and integration test * update nxos_linkagg
25 lines
654 B
YAML
25 lines
654 B
YAML
---
|
|
- name: collect common nxapi test cases
|
|
find:
|
|
paths: "{{ role_path }}/tests/common"
|
|
patterns: "{{ testcase }}.yaml"
|
|
register: test_cases
|
|
|
|
- name: collect nxapi test cases
|
|
find:
|
|
paths: "{{ role_path }}/tests/nxapi"
|
|
patterns: "{{ testcase }}.yaml"
|
|
register: nxapi_cases
|
|
|
|
- set_fact:
|
|
test_cases:
|
|
files: "{{ test_cases.files }} + {{ nxapi_cases.files }}"
|
|
|
|
- name: set test_items
|
|
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
|
|
|
|
- name: run test case
|
|
include: "{{ test_case_to_run }} connection={{ nxapi }}"
|
|
with_items: "{{ test_items }}"
|
|
loop_control:
|
|
loop_var: test_case_to_run
|