feat(alerting): add ALERT_RULE_CHANGE + ALERT_SILENCE_CHANGE audit categories
This commit is contained in:
@@ -2,5 +2,6 @@ package com.cameleer.server.core.admin;
|
|||||||
|
|
||||||
public enum AuditCategory {
|
public enum AuditCategory {
|
||||||
INFRA, AUTH, USER_MGMT, CONFIG, RBAC, AGENT,
|
INFRA, AUTH, USER_MGMT, CONFIG, RBAC, AGENT,
|
||||||
OUTBOUND_CONNECTION_CHANGE, OUTBOUND_HTTP_TRUST_CHANGE
|
OUTBOUND_CONNECTION_CHANGE, OUTBOUND_HTTP_TRUST_CHANGE,
|
||||||
|
ALERT_RULE_CHANGE, ALERT_SILENCE_CHANGE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.cameleer.server.core.admin;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
class AuditCategoryTest {
|
||||||
|
@Test
|
||||||
|
void alertingCategoriesPresent() {
|
||||||
|
assertThat(AuditCategory.valueOf("ALERT_RULE_CHANGE")).isNotNull();
|
||||||
|
assertThat(AuditCategory.valueOf("ALERT_SILENCE_CHANGE")).isNotNull();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user