RM-5416: REST API Tests for Folder Classification - various improvements

This commit is contained in:
jcule
2017-09-27 17:43:57 +01:00
parent 7b3628a1e3
commit b8398ecdac

View File

@@ -541,10 +541,10 @@ public class BaseRMRestTest extends RestTest
* @param categoryId the id of the category to assign permissions for * @param categoryId the id of the category to assign permissions for
* @throws Exception * @throws Exception
*/ */
public void assignFillingPermissionsOnCategory(UserModel user, String categoryId) throws Exception public void assignFillingPermissionsOnCategory(UserModel user, String categoryId, String userPermission, String userRole) throws Exception
{ {
getRestAPIFactory().getRMUserAPI().addUserPermission(categoryId, user, PERMISSION_FILING); getRestAPIFactory().getRMUserAPI().addUserPermission(categoryId, user, userPermission);
rmRolesAndActionsAPI.assignUserToRole(dataUser.getAdminUser().getUsername(), rmRolesAndActionsAPI.assignUserToRole(getAdminUser().getUsername(),
dataUser.getAdminUser().getPassword(), user.getUsername(), ROLE_RM_USER); getAdminUser().getPassword(), user.getUsername(), userRole);
} }
} }