Debian Codegraph @

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

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