Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - hosts: localhost
3 collections:
4 - theforeman.foreman
5 gather_facts: false
6 vars_files:
7 - vars/server.yml
8 tasks:
9 - include_tasks: tasks/organization.yml
10 vars:
11 organization_state: present
12 - include_tasks: tasks/scc_account.yml
13 vars:
14 scc_account_name: 'Test'
15 organization_name: 'Test Organization'
16 scc_account_state: absent
17 - include_tasks: tasks/scc_account.yml
18 vars:
19 scc_account_name: 'Test2'
20 organization_name: 'Test Organization'
21 scc_account_state: absent
22
23 - hosts: tests
24 collections:
25 - theforeman.foreman
26 gather_facts: false
27 vars_files:
28 - vars/server.yml
29 tasks:
30 - include_tasks: tasks/scc_account.yml
31 vars:
32 scc_account_password: 'testpass'
33 scc_account_login: 'testuser'
34 scc_account_base_url: 'https://scc.example.com'
35 test_connection: false
36 scc_account_state: present
37 expected_change: true
38
39 - include_tasks: tasks/scc_account.yml
40 vars:
41 scc_account_state: present
42 expected_change: false
43
44 - include_tasks: tasks/scc_account.yml
45 vars:
46 scc_account_password: 'testpass'
47 scc_account_login: 'testuser'
48 scc_account_base_url: 'https://scc.example.com'
49 test_connection: true
50 scc_account_state: present
51 expected_change: false
52 expected_fail: true
53
54 - include_tasks: tasks/scc_account.yml
55 vars:
56 scc_account_name: 'Test'
57 scc_account_updated_name: 'Test2'
58 scc_account_interval: 'monthly'
59 test_connection: true
60 scc_account_state: present
61 expected_change: false
62 expected_fail: true
63
64 - include_tasks: tasks/scc_account.yml
65 vars:
66 scc_account_name: 'Test'
67 scc_account_updated_name: 'Test2'
68 scc_account_interval: 'monthly'
69 test_connection: false
70 scc_account_state: present
71 expected_change: true
72
73 - include_tasks: tasks/scc_account.yml
74 vars:
75 scc_account_name: 'Test2'
76 scc_account_interval: 'monthly'
77 scc_account_state: present
78 expected_change: false
79
80 - include_tasks: tasks/scc_account.yml
81 vars:
82 scc_account_name: 'Test2'
83 test_connection: false
84 scc_account_state: synced
85 expected_fail: "{{ not ansible_check_mode }}"
86 expected_change: "{{ ansible_check_mode }}"
87
88 - include_tasks: tasks/scc_account.yml
89 vars:
90 scc_account_name: 'Test2'
91 organization_name: 'Test Organization'
92 scc_account_state: absent
93 expected_change: true
94
95 - include_tasks: tasks/scc_account.yml
96 vars:
97 scc_account_name: 'Test2'
98 organization_name: 'Test Organization'
99 scc_account_state: absent
100 expected_change: false
101
102 - hosts: localhost
103 collections:
104 - theforeman.foreman
105 gather_facts: false
106 vars_files:
107 - vars/server.yml
108 tasks:
109 - include_tasks: tasks/organization.yml
110 vars:
111 organization_state: absent
112 ...