TAS-895 getSite with Contributor role

This commit is contained in:
Iulia Nechita
2016-09-27 16:50:51 +03:00
parent c4a3a3f6d0
commit 8992be8755
@@ -67,4 +67,13 @@ public class GetSiteTests extends RestTest
siteAPI.getSite(siteModel.getId());
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY, description = "Verify user with Contributor role gets site information and gets status code OK (200)")
public void getSiteWithContributorRole() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteContributor));
siteAPI.getSite(siteModel.getId());
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
}