grafana-ansible-collection/tests/integration/targets/alert_notification_policy/tasks/main.yml
2023-03-03 15:01:42 +05:30

16 lines
415 B
YAML

---
- name: Set Notification policy tree
grafana.grafana.alert_notification_policy:
stack_slug: "{{ stack_name }}"
grafana_api_key: "{{ grafana_api_key }}"
routes:
- receiver: ansible,
object_matchers: [["env", "=", "Production"]]
register: result
- name: Notification Check
ansible.builtin.assert:
that:
- result.failed == false
- result.output.provenance == "api"