Browse Source
Merge pull request #50 from thingsboard/fix/test-compilation-hotfix-4.3
Fixed test compilation on hotfix-4.3
pull/16863/head
Viacheslav Klimov
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
4 deletions
-
application/src/test/java/org/thingsboard/server/service/notification/NotificationRuleApiTest.java
-
dao/src/test/java/org/thingsboard/server/dao/service/validator/AdminSettingsDataValidatorTest.java
|
|
|
@ -945,7 +945,6 @@ public class NotificationRuleApiTest extends AbstractNotificationApiTest { |
|
|
|
triggerConfig.setNotifyOn(Set.of(AlarmAction.CREATED)); |
|
|
|
alarmRule.setTriggerConfig(triggerConfig); |
|
|
|
EscalatedNotificationRuleRecipientsConfig recipientsConfig = new EscalatedNotificationRuleRecipientsConfig(); |
|
|
|
recipientsConfig.setTriggerType(NotificationRuleTriggerType.ALARM); |
|
|
|
recipientsConfig.setEscalationTable(Map.of( |
|
|
|
0, List.of(ownTarget.getUuidId()), |
|
|
|
60, List.of(otherTarget.getUuidId()) |
|
|
|
@ -1036,8 +1035,7 @@ public class NotificationRuleApiTest extends AbstractNotificationApiTest { |
|
|
|
rule.setTriggerType(NotificationRuleTriggerType.ENTITY_ACTION); |
|
|
|
rule.setTriggerConfig(triggerConfig); |
|
|
|
|
|
|
|
DefaultNotificationRuleRecipientsConfig recipientsConfig = new DefaultNotificationRuleRecipientsConfig(); |
|
|
|
recipientsConfig.setTriggerType(NotificationRuleTriggerType.ENTITY_ACTION); |
|
|
|
DefaultNotificationRuleRecipientsConfig recipientsConfig = DefaultNotificationRuleRecipientsConfig.forTriggerType(NotificationRuleTriggerType.ENTITY_ACTION); |
|
|
|
recipientsConfig.setTargets(targets); |
|
|
|
rule.setRecipientsConfig(recipientsConfig); |
|
|
|
return rule; |
|
|
|
|
|
|
|
@ -10,8 +10,8 @@ import org.thingsboard.common.util.JacksonUtil; |
|
|
|
import org.thingsboard.server.common.data.AdminSettings; |
|
|
|
import org.thingsboard.server.common.data.id.AdminSettingsId; |
|
|
|
import org.thingsboard.server.common.data.id.TenantId; |
|
|
|
import org.thingsboard.server.dao.exception.DataValidationException; |
|
|
|
import org.thingsboard.server.dao.settings.AdminSettingsService; |
|
|
|
import org.thingsboard.server.exception.DataValidationException; |
|
|
|
|
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
|