TAS-897 getSite with admin user

This commit is contained in:
Iulia Nechita
2016-09-27 16:52:30 +03:00
parent 4f6107294f
commit 16758317b8
@@ -85,4 +85,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 Consumer role gets site information and gets status code OK (200)")
public void getSiteWithAdminRole() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(adminUserModel);
siteAPI.getSite(siteModel.getId());
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
}