Skip to content

Commit 83ae6e2

Browse files
committed
Allow for alerts to fire from an e2e test
Sometimes, alerts are triggers to test a feature [1]. We allow for them to fire in CI with a specific prefix on the alert name to avoid overlapping with any alert from production. [1]. https://redhat.atlassian.net/browse/OTA-1813
1 parent 394edfe commit 83ae6e2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • pkg/monitortests/testframework/legacytestframeworkmonitortests

pkg/monitortests/testframework/legacytestframeworkmonitortests/alerts.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ func isSkippedAlert(alertName string) bool {
243243
return true
244244
}
245245
}
246+
// The prefix is specific enough to avoid overlapping with any alert from Production.
247+
// These alerts are used as triggers for an e2e test.
248+
if strings.HasPrefix(alertName, "TestAlertFeatureE2ETest") {
249+
return true
250+
}
246251
return false
247252
}
248253

0 commit comments

Comments
 (0)