TAS-1094 REST API - valid request returns success status code 200 with Collaborator role

This commit is contained in:
Valentin Popa
2016-10-05 18:11:16 +03:00
parent 9e2da8e959
commit 54e5fb6da6
@@ -73,4 +73,13 @@ public class GetRatingSanityTests extends RestTest
.assertStatusCodeIs(HttpStatus.OK);
}
@TestRail(section = {"rest-api", "ratings" }, executionType = ExecutionType.SANITY,
description = "Verify user with Collaborator role is able to retrieve document ratings")
public void collaboratorIsAbleToRetrieveDocumentRatings() throws Exception
{
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteCollaborator));
ratingsApi.getRatings(document);
ratingsApi.usingRestWrapper()
.assertStatusCodeIs(HttpStatus.OK);
}
}