From 9175486346bbf0f8bcdbec964adcd87a89db95a9 Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:52:19 +0100 Subject: [PATCH] test: add api endpoint check --- .../targets/grafana_contact_point/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/targets/grafana_contact_point/tasks/main.yml b/tests/integration/targets/grafana_contact_point/tasks/main.yml index 32a2eb15..060ceab8 100644 --- a/tests/integration/targets/grafana_contact_point/tasks/main.yml +++ b/tests/integration/targets/grafana_contact_point/tasks/main.yml @@ -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