Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Ensure scc_account '{{ scc_account_name }}' is {{ scc_account_state }} change {{ expected_change }} "
3 vars:
4 scc_account_state: "present"
5 scc_account_name: 'Test'
6 organization_name: 'Test Organization'
7 scc_account:
8 username: "{{ foreman_username }}"
9 password: "{{ foreman_password }}"
10 server_url: "{{ foreman_server_url }}"
11 validate_certs: "{{ foreman_validate_certs }}"
12 name: "{{ scc_account_name }}"
13 updated_name: "{{ scc_account_updated_name | default(omit) }}"
14 login: "{{ scc_account_login | default(omit) }}"
15 scc_account_password: "{{ scc_account_password | default(omit) }}"
16 organization: "{{ organization_name }}"
17 base_url: "{{ scc_account_base_url | default(omit) }}"
18 interval: "{{ scc_account_interval | default(omit) }}"
19 sync_date: "{{ scc_account_sync_date | default(omit) }}"
20 test_connection: "{{ test_connection | default(false) }}"
21 state: "{{ scc_account_state }}"
22 register: result
23 ignore_errors: "{{ expected_fail | default(false) }}"
24
25 - assert:
26 fail_msg: "Ensuring scc_account is {{ scc_account_state }} failed! (expected_change: {{ expected_change }})"
27 that:
28 - result.changed == expected_change
29 when: expected_change is defined
30 - assert:
31 fail_msg: "Ensuring scc_account failed as expected!"
32 that:
33 - result is failed
34 when:
35 - expected_fail is defined
36 - expected_fail
37 ...