Debian Codegraph @

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

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