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