Browse Source
Merge pull request #14338 from thingsboard/fix/alarm-notification-test
Fix alarm details in notification rules test
pull/14347/head
Viacheslav Klimov
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
application/src/test/java/org/thingsboard/server/service/notification/NotificationRuleApiTest.java
|
|
@ -952,7 +952,7 @@ public class NotificationRuleApiTest extends AbstractNotificationApiTest { |
|
|
argument.setRefEntityKey(new ReferencedEntityKey("createAlarm", ArgumentType.ATTRIBUTE, AttributeScope.SERVER_SCOPE)); |
|
|
argument.setRefEntityKey(new ReferencedEntityKey("createAlarm", ArgumentType.ATTRIBUTE, AttributeScope.SERVER_SCOPE)); |
|
|
configuration.setArguments(Map.of("createAlarm", argument)); |
|
|
configuration.setArguments(Map.of("createAlarm", argument)); |
|
|
AlarmRule alarmRule = new AlarmRule(); |
|
|
AlarmRule alarmRule = new AlarmRule(); |
|
|
alarmRule.setAlarmDetails("attribute is ${bool}"); |
|
|
alarmRule.setAlarmDetails("attribute is ${createAlarm}"); |
|
|
SimpleAlarmCondition condition = new SimpleAlarmCondition(); |
|
|
SimpleAlarmCondition condition = new SimpleAlarmCondition(); |
|
|
TbelAlarmConditionExpression expression = new TbelAlarmConditionExpression(); |
|
|
TbelAlarmConditionExpression expression = new TbelAlarmConditionExpression(); |
|
|
expression.setExpression("return createAlarm == true;"); |
|
|
expression.setExpression("return createAlarm == true;"); |
|
|
|