Debian Codegraph @

ansible_collections/cisco/iosxr/tests/integration/targets/iosxr_user/tasks/cli.yaml

raw symbols SCIP
1 ---
2 - name: Collect all common test cases
3 ansible.builtin.find:
4 paths: "{{ role_path }}/tests/common"
5 patterns: "{{ testcase }}.yaml"
6 use_regex: true
7 register: common_test_cases
8 delegate_to: localhost
9
10 - name: Collect all CLI test cases
11 ansible.builtin.find:
12 paths: "{{ role_path }}/tests/cli"
13 patterns: "{{ testcase }}.yaml"
14 use_regex: true
15 register: test_cases
16 delegate_to: localhost
17
18 - name: Set facts
19 ansible.builtin.set_fact:
20 test_cases:
21 files: "{{ common_test_cases.files + test_cases.files }}"
22
23 - name: Set test_items
24 ansible.builtin.set_fact:
25 test_items: "{{ test_cases.files | map(attribute='path') | list }}"
26
27 - name: Run test case (connection=ansible.netcommon.network_cli)
28 ansible.builtin.include_tasks: "{{ test_case_to_run }}"
29 vars:
30 ansible_connection: ansible.netcommon.network_cli
31 with_items: "{{ test_items }}"
32 loop_control:
33 loop_var: test_case_to_run
34 tags:
35 - network_cli