mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
IOS XR cli tests move to network_cli (#34007)
* Update task definitions for network_cli * Add connection to debug messages * Specify connection for prepare task * pc won't be around for connection=network_cli * Assorted Python 3 fixes * Give default port if ansible_ssh_port missing * delegate -> connection * Extend error regex
This commit is contained in:
@@ -9,8 +9,14 @@
|
||||
- name: set test_items
|
||||
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
|
||||
|
||||
- name: run test case
|
||||
include: "{{ test_case_to_run }}"
|
||||
- name: run test case (connection=network_cli)
|
||||
include: "{{ test_case_to_run }} ansible_connection=network_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"
|
||||
with_first_found: "{{ test_items }}"
|
||||
loop_control:
|
||||
loop_var: test_case_to_run
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- debug: msg="START iosxr_interface cli/basic.yaml"
|
||||
- debug: msg="START iosxr_interface cli/basic.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
- name: Setup interface
|
||||
iosxr_interface:
|
||||
@@ -256,4 +256,4 @@
|
||||
that:
|
||||
- 'result.changed == false'
|
||||
|
||||
- debug: msg="END iosxr_interface cli/basic.yaml"
|
||||
- debug: msg="END iosxr_interface cli/basic.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- debug: msg="START iosxr_interface cli/intent.yaml"
|
||||
- debug: msg="START iosxr_interface cli/intent.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
- name: Setup (interface is up)
|
||||
iosxr_interface:
|
||||
|
||||
Reference in New Issue
Block a user