RM-6645: Added unit test for getRmActionDefinitions webscript when whitelisted actions are present

This commit is contained in:
ehardon
2020-04-14 17:22:33 +03:00
parent ea41e5c553
commit dac7a8bcf8
2 changed files with 128 additions and 2 deletions

View File

@@ -82,8 +82,10 @@ public class RmActionDefinitionsGet extends DeclarativeWebScript
}
}
// If there are any DM whitelisted actions for RM add them in the rule actions
for (ActionDefinition actionDefinition: actions) {
if (whitelistedActions.contains(actionDefinition.getName())){
for (ActionDefinition actionDefinition : actions)
{
if (whitelistedActions.contains(actionDefinition.getName()))
{
defs.add(actionDefinition);
}
}