TAS-858 getSites with Contributor role

This commit is contained in:
Iulia Nechita
2016-09-27 16:17:27 +03:00
parent 2c640e1e70
commit 0682284770
@@ -65,4 +65,13 @@ public class GetSitesTests extends RestTest
siteAPI.getAllSites();
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY, description = "Verify user with Contributor role gets sites information and gets status code OK (200)")
public void getSitesWithContributorRole() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteContributor));
siteAPI.getAllSites();
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
}