mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Changes to enable network_cli and netconf on iosxr integration tests. (#35269)
* * Changes to enable network_cli and netconf on modules. * limits connection local for single TC per playbook. * * adds a note on why only 1 TC is executed with connection: local
This commit is contained in:
parent
f49a782099
commit
56eeaf1b2f
25 changed files with 548 additions and 499 deletions
|
@ -26,6 +26,8 @@
|
|||
loop_control:
|
||||
loop_var: test_case_to_run
|
||||
|
||||
# Only one of the Testcase would be run to check if `connection: local`
|
||||
# is established. Full suite is run with `connection:network_cli` or `connection:netconf`
|
||||
- name: run test case (connection=local)
|
||||
include: "{{ test_case_to_run }} ansible_connection=local"
|
||||
with_first_found: "{{ test_items }}"
|
||||
|
|
|
@ -20,14 +20,16 @@
|
|||
- name: set test_items
|
||||
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
|
||||
|
||||
- name: run test case (connection=local)
|
||||
include: "{{ test_case_to_run }} ansible_connection=local"
|
||||
- name: run test case (connection=netconf)
|
||||
include: "{{ test_case_to_run }}"
|
||||
with_items: "{{ test_items }}"
|
||||
loop_control:
|
||||
loop_var: test_case_to_run
|
||||
|
||||
#- name: run test case (connection=netconf)
|
||||
#include: "{{ test_case_to_run }} ansible_connection=network_cli"
|
||||
#with_items: "{{ test_items }}"
|
||||
#loop_control:
|
||||
# loop_var: test_case_to_run
|
||||
# Only one of the Testcase would be run to check if `connection: local`
|
||||
# is established. Full suite is run with `connection:network_cli` or `connection:netconf`
|
||||
- name: run test case (connection=local)
|
||||
include: "{{ test_case_to_run }} ansible_connection=local"
|
||||
with_first_found: "{{ test_items }}"
|
||||
loop_control:
|
||||
loop_var: test_case_to_run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue