TAS-979 getSiteContainer with Collaborator role

This commit is contained in:
Iulia Nechita
2016-09-30 10:23:50 +03:00
parent 4954d740fa
commit 761a41e28e

View File

@@ -58,4 +58,14 @@ public class GetSiteContainerSanityTests extends RestTest
siteAPI.getSiteContainer(siteModel, listOfFoldersIds.get(0)); siteAPI.getSiteContainer(siteModel, listOfFoldersIds.get(0));
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK); 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);
}
} }