mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-08 14:51:20 +00:00
TAS-979 getSiteContainer with Collaborator role
This commit is contained in:
@@ -58,4 +58,14 @@ public class GetSiteContainerSanityTests extends RestTest
|
||||
siteAPI.getSiteContainer(siteModel, listOfFoldersIds.get(0));
|
||||
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK);
|
||||
}
|
||||
|
||||
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify user with Collaborator role gets site container and gets status code OK (200)")
|
||||
public void getSiteContainerWithCollaboratorRole() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteCollaborator));
|
||||
listOfFoldersIds = siteAPI.getSiteContainers(siteModel).getSiteContainersList();
|
||||
siteAPI.getSiteContainer(siteModel, listOfFoldersIds.get(0));
|
||||
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user