Debian Codegraph @

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

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