Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: Create pushover contact point
3 register: result
4 community.grafana.grafana_contact_point:
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
17 - result.state == "present"
18 - result.contact_point.uid == "pushover"
19 - result.contact_point.name == "pushover"
20 - result.contact_point.type == "pushover"
21
22 - name: Create pushover contact point (idempotency)
23 register: result
24 community.grafana.grafana_contact_point:
25 uid: pushover
26 name: pushover
27 type: pushover
28 pushover_api_token: xxx
29 pushover_user_key: yyy
30
31 - ansible.builtin.debug:
32 var: result
33
34 - ansible.builtin.assert:
35 that:
36 - not result.changed
37 - result.state == "present"
38 - result.contact_point.uid == "pushover"
39 - result.contact_point.name == "pushover"
40 - result.contact_point.type == "pushover"
41
42 - name: Update pushover contact point
43 register: result
44 community.grafana.grafana_contact_point:
45 uid: pushover
46 name: pushover
47 type: pushover
48 pushover_api_token: xxx-update
49 pushover_user_key: yyy-update
50
51 - ansible.builtin.debug:
52 var: result
53
54 - ansible.builtin.assert:
55 that:
56 - result.changed
57 - result.state == "present"
58 - result.contact_point.uid == "pushover"
59 - result.contact_point.name == "pushover"
60 - result.contact_point.type == "pushover"
61 - result.diff is defined
62
63 - name: Delete pushover contact point
64 register: result
65 community.grafana.grafana_contact_point:
66 uid: pushover
67 state: absent
68
69 - ansible.builtin.debug:
70 var: result
71
72 - ansible.builtin.assert:
73 that:
74 - result.changed
75 - result.state == "absent"
76 - result.contact_point.uid == "pushover"
77
78 - name: Delete pushover contact point (idempotency)
79 register: result
80 community.grafana.grafana_contact_point:
81 uid: pushover
82 state: absent
83
84 - ansible.builtin.debug:
85 var: result
86
87 - ansible.builtin.assert:
88 that:
89 - not result.changed
90 - result.state == "absent"