TAS-935 getSiteContainers with Collaborator role

This commit is contained in:
Iulia Nechita
2016-09-28 16:43:22 +03:00
parent 8c5c6bc0a6
commit b705ff908a

View File

@@ -55,4 +55,13 @@ public class GetSiteContainersSanityTests extends RestTest
siteAPI.getSiteContainers(siteModel.getId());
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
@TestRail(section = {"rest-api", "sites" }, executionType = ExecutionType.SANITY,
description = "Verify user with Collaborator role gets site containers and gets status code OK (200)")
public void getSiteContainersWithCollaboratorRole() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteCollaborator));
siteAPI.getSiteContainers(siteModel.getId());
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
}