Merge branch 'master' of github.com:thingsboard/thingsboard
This commit is contained in:
commit
1323edf5aa
@ -89,11 +89,9 @@ public abstract class AbstractNotifyEntityTest extends AbstractWebTest {
|
||||
argument -> argument.getClass().equals(UserId.class) : argument -> argument.equals(userId);
|
||||
testLogEntityActionAdditionalInfo(matcherEntityClassEquals, matcherOriginatorId, tenantId, matcherCustomerId, matcherUserId, userName, actionType, cntTime,
|
||||
extractMatcherAdditionalInfo(additionalInfo));
|
||||
testPushMsgToRuleEngineNever(relation.getTo());
|
||||
matcherOriginatorId = argument -> argument.equals(relation.getFrom());
|
||||
testLogEntityActionAdditionalInfo(matcherEntityClassEquals, matcherOriginatorId, tenantId, matcherCustomerId, matcherUserId, userName, actionType, cntTime,
|
||||
extractMatcherAdditionalInfo(additionalInfo));
|
||||
testPushMsgToRuleEngineNever(relation.getFrom());
|
||||
Mockito.reset(tbClusterService, auditLogService);
|
||||
}
|
||||
|
||||
@ -111,7 +109,7 @@ public abstract class AbstractNotifyEntityTest extends AbstractWebTest {
|
||||
argument -> argument.getClass().equals(UserId.class) : argument -> argument.equals(userId);
|
||||
testLogEntityActionAdditionalInfoAny(matcherEntityClassEquals, matcherOriginatorId, tenantId, matcherCustomerId, matcherUserId,
|
||||
userName, actionType, cntTime * 2, 1);
|
||||
testPushMsgToRuleEngineTime(matcherOriginatorId, tenantId, new Tenant(), cntTime);
|
||||
testPushMsgToRuleEngineTime(matcherOriginatorId, tenantId, new Tenant(), cntTime * 3);
|
||||
Mockito.reset(tbClusterService, auditLogService);
|
||||
}
|
||||
|
||||
@ -141,11 +139,7 @@ public abstract class AbstractNotifyEntityTest extends AbstractWebTest {
|
||||
testNotificationMsgToEdgeServiceNeverWithActionType(entityId, actionType);
|
||||
testLogEntityAction(entity, originatorId, tenantId, customerId, userId, userName, actionType, cntTime, additionalInfo);
|
||||
ArgumentMatcher<EntityId> matcherOriginatorId = argument -> argument.equals(originatorId);
|
||||
if (ActionType.RELATIONS_DELETED.equals(actionType)) {
|
||||
testPushMsgToRuleEngineNever(originatorId);
|
||||
} else {
|
||||
testPushMsgToRuleEngineTime(matcherOriginatorId, tenantId, entity, cntTime);
|
||||
}
|
||||
Mockito.reset(tbClusterService, auditLogService);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user