Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: Create webhook notification channel
3 register: result
4 community.grafana.grafana_notification_channel:
5 uid: webhook
6 name: webhook
7 type: webhook
8 webhook_url: https://example.org
9
10 - ansible.builtin.debug:
11 var: result
12
13 - ansible.builtin.assert:
14 that:
15 - result.changed == True
16 - result.channel.name == "webhook"
17 - result.channel.uid == "webhook"
18 - result.channel.type == "webhook"
19
20 - name: Create webhook notification channel (idempotency)
21 register: result
22 community.grafana.grafana_notification_channel:
23 uid: webhook
24 name: webhook
25 type: webhook
26 webhook_url: https://example.org
27
28 - ansible.builtin.debug:
29 var: result
30
31 - ansible.builtin.assert:
32 that:
33 - result.changed == False
34 - result.channel.name == "webhook"
35 - result.channel.uid == "webhook"
36 - result.channel.type == "webhook"
37
38 - name: Delete webhook notification channel
39 register: result
40 community.grafana.grafana_notification_channel:
41 uid: webhook
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 webhook notification channel (idempotency)
52 register: result
53 community.grafana.grafana_notification_channel:
54 uid: webhook
55 state: absent
56
57 - ansible.builtin.debug:
58 var: result
59
60 - ansible.builtin.assert:
61 that:
62 - result.changed == False