diff --git a/components/role-mgt/org.wso2.carbon.identity.role.v2.mgt.core/src/main/java/org/wso2/carbon/identity/role/v2/mgt/core/RoleManagementServiceImpl.java b/components/role-mgt/org.wso2.carbon.identity.role.v2.mgt.core/src/main/java/org/wso2/carbon/identity/role/v2/mgt/core/RoleManagementServiceImpl.java index 33e4adfe76c8..4148f2dbe0dc 100644 --- a/components/role-mgt/org.wso2.carbon.identity.role.v2.mgt.core/src/main/java/org/wso2/carbon/identity/role/v2/mgt/core/RoleManagementServiceImpl.java +++ b/components/role-mgt/org.wso2.carbon.identity.role.v2.mgt.core/src/main/java/org/wso2/carbon/identity/role/v2/mgt/core/RoleManagementServiceImpl.java @@ -717,8 +717,8 @@ public int getRolesCount(String searchFilter, String tenantDomain) throws Identi } } if (log.isDebugEnabled()) { - log.debug(String.format("%s for the filter %s get roles count successfully.", getUser(tenantDomain), - searchFilter)); + log.debug(String.format("Get roles count for the filter %s & tenant domain %s is successful.", + searchFilter, tenantDomain)); } return count; } diff --git a/components/role-mgt/org.wso2.carbon.identity.role.v2.mgt.core/src/test/java/org/wso2/carbon/identity/role/v2/mgt/core/dao/RoleDAOTest.java b/components/role-mgt/org.wso2.carbon.identity.role.v2.mgt.core/src/test/java/org/wso2/carbon/identity/role/v2/mgt/core/dao/RoleDAOTest.java index b08965657749..0ec5d8746d95 100644 --- a/components/role-mgt/org.wso2.carbon.identity.role.v2.mgt.core/src/test/java/org/wso2/carbon/identity/role/v2/mgt/core/dao/RoleDAOTest.java +++ b/components/role-mgt/org.wso2.carbon.identity.role.v2.mgt.core/src/test/java/org/wso2/carbon/identity/role/v2/mgt/core/dao/RoleDAOTest.java @@ -636,7 +636,7 @@ public void testCountRolesForAFilter() throws Exception { addRole(roleNamesList.get(1), APPLICATION_AUD, SAMPLE_APP_ID, roleDAO); addRole(roleNamesList.get(2), APPLICATION_AUD, SAMPLE_APP_ID, roleDAO); - List expressionNodes = getExpressionNodes("audience ne undefined"); + List expressionNodes = getExpressionNodes("audience.value ne undefined"); int rolesCount = roleDAO.getRolesCount(expressionNodes, SAMPLE_TENANT_DOMAIN); assertEquals(rolesCount, 3); }