8eeaea2aa8
* Fixing cloud_plugin idempotency * Sanity check fixes * fix test * fix * reset test * Add 9dempotency check to test * Working cloud_plugin with idempotency * Adding idempotency for contactPoint * fixes * Tests update * sanity fix * Fixed * Fixes * sanity fix * Fix sanity * fixes * fixes * Fixed idempotency * fix sanity * alert_notification update * fix notification * fixes * folder idempotency * folder test Co-authored-by: ishanjainn <ishan.jain@gmail.com>
28 lines
713 B
YAML
28 lines
713 B
YAML
- name: Create/Update a Folder in Grafana
|
|
grafana.grafana.folder:
|
|
title: Ansible Integration test
|
|
uid: test123
|
|
overwrite: true
|
|
stack_slug: "{{ stack_name }}"
|
|
grafana_api_key: "{{ grafana_api_key }}"
|
|
state: present
|
|
register: create_result
|
|
|
|
- assert:
|
|
that:
|
|
- create_result.failed == false
|
|
|
|
- name: Delete a folder
|
|
grafana.grafana.folder:
|
|
title: Ansible Integration test
|
|
uid: test123
|
|
overwrite: true
|
|
stack_slug: "{{ stack_name }}"
|
|
grafana_api_key: "{{ grafana_api_key }}"
|
|
state: absent
|
|
register: delete_result
|
|
|
|
- assert:
|
|
that:
|
|
- delete_result.changed == true
|
|
- delete_result.output.message == "Folder Ansible Integration test deleted" |