Debian Codegraph @

ansible_collections/cisco/iosxr/tests/integration/targets/iosxr_system/tasks/netconf.yaml

raw symbols SCIP
1 ---
2 - name: Collect all netconf test cases
3 ansible.builtin.find:
4 paths: "{{ role_path }}/tests/netconf"
5 patterns: "{{ testcase }}.yaml"
6 register: test_cases
7 delegate_to: localhost
8
9 - name: Set test_items
10 ansible.builtin.set_fact:
11 test_items: "{{ test_cases.files | map(attribute='path') | list }}"
12
13 # Exclude specific test cases from the list
14 - name: Filter out specific tests from test_items
15 ansible.builtin.set_fact:
16 test_items: "{{ test_items | select('match', '^(?!.*(' + exclude_files | join('|') + ')$).*') | list }}"
17 vars:
18 exclude_files:
19 # Name server command is not supported in CML
20 - set_name_servers.yaml
21
22 - name: Run test case (connection=ansible.netcommon.netconf)
23 ansible.builtin.include_tasks: "{{ test_case_to_run }}"
24 with_items: "{{ test_items }}"
25 loop_control:
26 loop_var: test_case_to_run
27 tags:
28 - netconf
29
30 - name: Reset connection
31 ansible.builtin.meta: reset_connection