Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: Create threema notification channel
3 register: result
4 community.grafana.grafana_notification_channel:
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 == True
18 - result.channel.name == "threema"
19 - result.channel.type == "threema"
20 - result.channel.uid == "threema"
21
22 - name: Create threema notification channel (idempotency)
23 register: result
24 community.grafana.grafana_notification_channel:
25 uid: threema
26 name: threema
27 type: threema
28 threema_gateway_id: xxx
29 threema_recepient_id: yyy
30 threema_api_secret: zzz
31
32 - ansible.builtin.debug:
33 var: result
34
35 - ansible.builtin.assert:
36 that:
37 - result.changed == True
38 - result.channel.name == "threema"
39 - result.channel.type == "threema"
40 - result.channel.uid == "threema"
41
42 - name: Delete threema notification channel
43 register: result
44 community.grafana.grafana_notification_channel:
45 uid: threema
46 state: absent
47
48 - ansible.builtin.debug:
49 var: result
50
51 - ansible.builtin.assert:
52 that:
53 - result.changed == True
54
55 - name: Delete threema notification channel (idempotency)
56 register: result
57 community.grafana.grafana_notification_channel:
58 uid: threema
59 state: absent
60
61 - ansible.builtin.debug:
62 var: result
63
64 - ansible.builtin.assert:
65 that:
66 - result.changed == False