Debian Codegraph @

ansible_collections/community/grafana/tests/integration/targets/grafana_team/tasks/team_delete.yml

raw symbols SCIP
1 ---
2 - name: Check a team can be deleted
3 community.grafana.grafana_team:
4 name: grafana working group
5 org_id: "{{ team_create_org_result.org.id if team_include.org_id | default(false) else omit }}"
6 org_name: "{{ team_create_org_result.org.name if team_include.org_name | default(false) else omit }}"
7 email: [email protected]
8 state: absent
9 register: result
10
11 - ansible.builtin.assert:
12 that:
13 - result.changed == true
14 - result.message == 'Team deleted'
15 when: not ansible_check_mode
16
17 - name: Check idempotency on team deletion
18 community.grafana.grafana_team:
19 name: grafana working group
20 org_id: "{{ team_create_org_result.org.id if team_include.org_id | default(false) else omit }}"
21 org_name: "{{ team_create_org_result.org.name if team_include.org_name | default(false) else omit }}"
22 email: [email protected]
23 state: absent
24 register: result
25
26 - ansible.builtin.assert:
27 that:
28 - result.changed == false
29 - result.message == 'No team found'
30 when: not ansible_check_mode