dc37b41b72
* [2.5] Update ios tests (#42509) * 192.168.0.1/24 conflicts with management IP * Images don't have the hostnames we expect (cherry picked from commit399d13d
) Co-authored-by: Nathaniel Case <this.is@nathanielca.se> * ios test cleanup pt 2 (#42570) * Remove local from ios_config to avoid needing to add provider * ios_smoke should test all with local to pick up the slack (cherry picked from commit381263ad99
)
22 lines
621 B
YAML
22 lines
621 B
YAML
---
|
|
- name: collect all cli test cases
|
|
find:
|
|
paths: "{{ role_path }}/tests/cli"
|
|
patterns: "{{ testcase }}.yaml"
|
|
register: test_cases
|
|
delegate_to: localhost
|
|
|
|
- name: set test_items
|
|
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
|
|
|
|
- name: run test cases (connection=network_cli)
|
|
include: "{{ test_case_to_run }}"
|
|
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"
|
|
with_items: "{{ test_items }}"
|
|
loop_control:
|
|
loop_var: test_case_to_run
|