Fix compile error

This commit is contained in:
Andrii Landiak 2025-05-30 16:34:40 +03:00
parent f65fa52c29
commit a9fd66f7c8

View File

@ -817,7 +817,7 @@ public class NotificationRuleApiTest extends AbstractNotificationApiTest {
.cpuThreshold(1f)
.storageThreshold(1f)
.build();
createNotificationRule(triggerConfig, "Warning: ${resource} shortage", "${resource} shortage", createNotificationTarget(tenantAdminUserId).getId());it a
createNotificationRule(triggerConfig, "Warning: ${resource} shortage", "${resource} shortage", createNotificationTarget(tenantAdminUserId).getId());
loginTenantAdmin();
assertThat(getMyNotifications(false, 100)).size().isZero();
@ -833,7 +833,7 @@ public class NotificationRuleApiTest extends AbstractNotificationApiTest {
assertThat(notification.getSubject()).isEqualTo("Warning: RAM shortage");
assertThat(notification.getText()).isEqualTo("RAM shortage");
// deduplication is 5 minute, no new message is exp
// deduplication is 1 minute, no new message is exp
notificationRuleProcessor.process(ResourcesShortageTrigger.builder()
.resource(Resource.RAM)
.usage(5L)