mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
TAS-1096 REST API - valid request returns success status code 200 with Consumer role
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user