mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-01 14:41:19 +00:00
TAS-1018 REST API - valid request returns success status code 200 with admin user
This commit is contained in:
@@ -86,4 +86,14 @@ public class GetSiteMembershipSanityTests extends RestTest
|
||||
.assertStatusCodeIs(HttpStatus.OK);
|
||||
}
|
||||
|
||||
@TestRail(section = { "rest-api",
|
||||
"people" }, executionType = ExecutionType.SANITY, description = "Verify admin user is able to retrieve site membership information of another user")
|
||||
public void adminCanRetrieveSiteMembershipInformation() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(adminUser);
|
||||
peopleApi.getSiteMembership(usersWithRoles.getOneUserWithRole(UserRole.SiteManager), siteModel);
|
||||
peopleApi.usingRestWrapper()
|
||||
.assertStatusCodeIs(HttpStatus.OK);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user