Skip to content

Commit

Permalink
test: add api endpoint check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Mar 21, 2024
1 parent 24fdf71 commit 9175486
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
---

- name: Check for support of API endpoint
register: result
ignore_errors: true
community.grafana.grafana_contact_point:
uid: apitest
state: absent

- name: Include contact point task files
ansible.builtin.include_tasks: "{{ item }}.yml"
when: "result.msg | default('') != 'Unable to get contact point: API endpoint not found'"
loop:
- alertmanager
- dingding
Expand Down

0 comments on commit 9175486

Please sign in to comment.