From 8e054b85f1266e34ef01b2cb3becff21a6e09946 Mon Sep 17 00:00:00 2001 From: yurkovychv Date: Mon, 28 Oct 2024 17:37:50 +0200 Subject: [PATCH] PMM-7 alerting fixes --- tests/ia/alertRules_test.js | 1 + tests/ia/pages/api/rulesAPI.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ia/alertRules_test.js b/tests/ia/alertRules_test.js index 23fd4a8fb..e9a09452a 100644 --- a/tests/ia/alertRules_test.js +++ b/tests/ia/alertRules_test.js @@ -21,6 +21,7 @@ Feature('Alerting: Alert rules'); Before(async ({ I }) => { await I.Authorize(); + await rulesAPI.removeAllAlertRules(); }); After(async () => { diff --git a/tests/ia/pages/api/rulesAPI.js b/tests/ia/pages/api/rulesAPI.js index ca68aacae..1a564b35c 100644 --- a/tests/ia/pages/api/rulesAPI.js +++ b/tests/ia/pages/api/rulesAPI.js @@ -96,7 +96,7 @@ module.exports = { async removeAlertRule(folder) { const headers = { Authorization: `Basic ${await I.getAuth()}` }; - const resp = await I.sendDeleteRequest(`/graph/api/ruler/grafana/api/v1/rules/${folder}/default-alert-group?subtype=cortex`, headers); + const resp = await I.sendDeleteRequest(`graph/api/ruler/grafana/api/v1/rules/${folder}/default-alert-group?subtype=cortex`, headers); assert.ok( resp.status === 202,