TAS-1096 REST API - valid request returns success status code 200 with Consumer role

This commit is contained in:
Valentin Popa
2016-10-05 18:14:44 +03:00
parent 22348f4536
commit ebca4751ae
@@ -92,4 +92,14 @@ public class GetRatingSanityTests extends RestTest
ratingsApi.usingRestWrapper()
.assertStatusCodeIs(HttpStatus.OK);
}
@TestRail(section = {"rest-api", "ratings" }, executionType = ExecutionType.SANITY,
description = "Verify user with Consumer role is able to retrieve document ratings")
public void consumerIsAbleToRetrieveDocumentRatings() throws Exception
{
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteConsumer));
ratingsApi.getRatings(document);
ratingsApi.usingRestWrapper()
.assertStatusCodeIs(HttpStatus.OK);
}
}