mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
TAS-915 - REST API - valid site membership information request returns success status code 200 with Consumer role
This commit is contained in:
@@ -78,5 +78,16 @@ public class GetSiteMembershipInformationSanityTest extends RestTest
|
||||
siteAPI.usingRestWrapper()
|
||||
.assertStatusCodeIs(HttpStatus.OK.toString());
|
||||
}
|
||||
|
||||
@TestRail(section = { "rest-api", "sites" },
|
||||
executionType = ExecutionType.SANITY,
|
||||
description = "Verify site consumer is able to retrieve site membership information of another user")
|
||||
public void siteConsumerCanRetrieveSiteMembershipInformation() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteConsumer));
|
||||
siteAPI.getSiteMembershipInformation(adminUser.getUsername());
|
||||
siteAPI.usingRestWrapper()
|
||||
.assertStatusCodeIs(HttpStatus.OK.toString());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user