Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: Create email notification channel
3 register: result
4 community.grafana.grafana_notification_channel:
5 uid: email
6 name: email
7 type: email
8 email_addresses:
9 - [email protected]
10 - [email protected]
11
12 - ansible.builtin.debug:
13 var: result
14
15 - ansible.builtin.assert:
16 that:
17 - result.changed == True
18 - result.channel.name == "email"
19 - result.channel.type == "email"
20 - result.channel.uid == "email"
21
22 - name: Create email notification channel (idempotency)
23 register: result
24 community.grafana.grafana_notification_channel:
25 uid: email
26 name: email
27 type: email
28 email_addresses:
29 - [email protected]
30 - [email protected]
31
32 - ansible.builtin.debug:
33 var: result
34
35 - ansible.builtin.assert:
36 that:
37 - result.changed == False
38 - result.channel.name == "email"
39 - result.channel.type == "email"
40 - result.channel.uid == "email"
41
42 - name: Delete discord notification channel
43 register: result
44 community.grafana.grafana_notification_channel:
45 uid: email
46 state: absent
47
48 - ansible.builtin.debug:
49 var: result
50
51 - ansible.builtin.assert:
52 that:
53 - result.changed == True
54 - result.state == 'absent'
55
56 - name: Delete discord notification channel (idempotency)
57 register: result
58 community.grafana.grafana_notification_channel:
59 uid: email
60 state: absent
61
62 - ansible.builtin.debug:
63 var: result
64
65 - ansible.builtin.assert:
66 that:
67 - result.changed == False