Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure compute_attribute is {{ compute_attribute_state }}"
3 vars:
4 compute_profile_name: "Test Compute Profile"
5 compute_resource_name: "Test Compute Resource"
6 compute_attribute_state: "present"
7 compute_attribute:
8 username: "{{ foreman_username }}"
9 password: "{{ foreman_password }}"
10 server_url: "{{ foreman_server_url }}"
11 validate_certs: "{{ foreman_validate_certs }}"
12 compute_profile: "{{ compute_profile_name }}"
13 compute_resource: "{{ compute_resource_name }}"
14 vm_attrs: "{{ vm_attrs }}"
15 state: "{{ compute_attribute_state }}"
16 register: result
17 - assert:
18 fail_msg: "Ensuring compute attribute is {{ compute_attribute_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
19 that:
20 - result.changed == expected_change
21 when: expected_change is defined
22 ...