Debian Codegraph @

ansible_collections/community/grafana/tests/integration/targets/grafana_contact_point/tasks/threema.yml

raw symbols SCIP
1 ---
2 - name: Create threema contact point
3 register: result
4 community.grafana.grafana_contact_point:
5 uid: threema
6 name: threema
7 type: threema
8 threema_gateway_id: "*xxxxxxx"
9 threema_recipient_id: yyyyyyyy
10 threema_api_secret: zzz
11
12 - ansible.builtin.debug:
13 var: result
14
15 - ansible.builtin.assert:
16 that:
17 - result.changed
18 - result.state == "present"
19 - result.contact_point.uid == "threema"
20 - result.contact_point.name == "threema"
21 - result.contact_point.type == "threema"
22
23 - name: Create threema contact point (idempotency)
24 register: result
25 community.grafana.grafana_contact_point:
26 uid: threema
27 name: threema
28 type: threema
29 threema_gateway_id: xxx
30 threema_recepient_id: yyy
31 threema_api_secret: zzz
32
33 - ansible.builtin.debug:
34 var: result
35
36 - ansible.builtin.assert:
37 that:
38 - not result.changed
39 - result.state == "present"
40 - result.contact_point.uid == "threema"
41 - result.contact_point.name == "threema"
42 - result.contact_point.type == "threema"
43
44 - name: Update threema contact point
45 register: result
46 community.grafana.grafana_contact_point:
47 uid: threema
48 name: threema
49 type: threema
50 threema_gateway_id: "*xxxxxxx-update"
51 threema_recipient_id: yyyyyyyy-update
52 threema_api_secret: zzz-update
53
54 - ansible.builtin.debug:
55 var: result
56
57 - ansible.builtin.assert:
58 that:
59 - result.changed
60 - result.state == "present"
61 - result.contact_point.uid == "threema"
62 - result.contact_point.name == "threema"
63 - result.contact_point.type == "threema"
64 - result.diff is defined
65
66 - name: Delete threema contact point
67 register: result
68 community.grafana.grafana_contact_point:
69 uid: threema
70 state: absent
71
72 - ansible.builtin.debug:
73 var: result
74
75 - ansible.builtin.assert:
76 that:
77 - result.changed
78 - result.state == "absent"
79 - result.contact_point.uid == "threema"
80
81 - name: Delete threema contact point (idempotency)
82 register: result
83 community.grafana.grafana_contact_point:
84 uid: threema
85 state: absent
86
87 - ansible.builtin.debug:
88 var: result
89
90 - ansible.builtin.assert:
91 that:
92 - not result.changed
93 - result.state == "absent"