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:
@@ -84,6 +84,16 @@ public class GetSiteMembershipSanityTests extends RestTest
|
|||||||
peopleApi.getSiteMembership(adminUser, siteModel);
|
peopleApi.getSiteMembership(adminUser, siteModel);
|
||||||
peopleApi.usingRestWrapper()
|
peopleApi.usingRestWrapper()
|
||||||
.assertStatusCodeIs(HttpStatus.OK);
|
.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