Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: Create hipchat notification channel
3 register: result
4 community.grafana.grafana_notification_channel:
5 uid: hipchat
6 name: hipchat
7 type: hipchat
8 hipchat_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 == "hipchat"
17 - result.channel.type == "hipchat"
18 - result.channel.uid == "hipchat"
19
20 - name: Create hipchat notification channel (idempotency)
21 register: result
22 community.grafana.grafana_notification_channel:
23 uid: hipchat
24 name: hipchat
25 type: hipchat
26 hipchat_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 == "hipchat"
35 - result.channel.type == "hipchat"
36 - result.channel.uid == "hipchat"
37
38 - name: Delete hipchat notification channel
39 register: result
40 community.grafana.grafana_notification_channel:
41 uid: hipchat
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 hipchat notification channel (idempotency)
52 register: result
53 community.grafana.grafana_notification_channel:
54 uid: hipchat
55 state: absent
56
57 - ansible.builtin.debug:
58 var: result
59
60 - ansible.builtin.assert:
61 that:
62 - result.changed == False