Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/tasks/resource_info.yml

raw symbols SCIP
1 ---
2 - name: "Find '{{ resource }}' resources"
3 resource_info:
4 username: "{{ foreman_username }}"
5 password: "{{ foreman_password }}"
6 server_url: "{{ foreman_server_url }}"
7 validate_certs: "{{ foreman_validate_certs }}"
8 resource: "{{ resource }}"
9 search: "{{ search | default(omit) }}"
10 full_details: "{{ full_details | default(omit) }}"
11 organization: "{{ organization | default(omit) }}"
12 params: "{{ params | default(omit) }}"
13 register: result
14 - assert:
15 fail_msg: "Verification that '{{ return_length }}' '{{ resource }}' resources are found"
16 that: result.resources | length == return_length
17 when: return_length is defined
18 - assert:
19 fail_msg: "Verification that at least '{{ return_min }}' '{{ resource }}' resources are found"
20 that: result.resources | length >= return_min
21 when: return_min is defined
22 ...