Skip to content

Commit

Permalink
PMM-7 alerting fixes (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurkovychv authored Oct 28, 2024
1 parent f967f57 commit 849193a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/ia/alertRules_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Feature('Alerting: Alert rules');

Before(async ({ I }) => {
await I.Authorize();
await rulesAPI.removeAllAlertRules();
});

After(async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/ia/pages/api/rulesAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 849193a

Please sign in to comment.