mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-08 14:51:20 +00:00
TAS-969 REST API - valid remove site member request returns success status code 204 with admin user
This commit is contained in:
@@ -119,4 +119,19 @@ public class DeleteSiteMemberSanityTests extends RestTest
|
|||||||
sitesApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN.toString());
|
sitesApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestRail(section = { "rest-api", "people" },
|
||||||
|
executionType = ExecutionType.SANITY,
|
||||||
|
description = "Verify admin user is able to delete another member of the site")
|
||||||
|
public void adminIsAbleToDeleteSiteMember() throws JsonToModelConversionException, DataPreparationException, Exception
|
||||||
|
{
|
||||||
|
newUser = dataUser.createRandomTestUser();
|
||||||
|
siteMember = new SiteMember(Role.SiteCollaborator.toString(), newUser.getUsername());
|
||||||
|
restClient.authenticateUser(adminUser);
|
||||||
|
sitesApi.addPerson(siteModel.getId(), siteMember);
|
||||||
|
|
||||||
|
peopleApi.deleteSiteMember(newUser.getUsername(), siteModel.getId());
|
||||||
|
sitesApi.usingRestWrapper()
|
||||||
|
.assertStatusCodeIs(HttpStatus.NO_CONTENT.toString());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user