Debian Codegraph @

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

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