TAS-859 getSites with Consumer role

This commit is contained in:
Iulia Nechita
2016-09-27 16:19:36 +03:00
parent 0682284770
commit c74603a819
@@ -74,4 +74,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 Consumer role gets sites information and gets status code OK (200)")
public void getSitesWithConsumerRole() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteConsumer));
siteAPI.getAllSites();
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
}
}