mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
TAS-1248 deleteSiteMembershipRequest failed authentication call returns status code 401
This commit is contained in:
@@ -138,4 +138,18 @@ public class DeleteSiteMembershipRequestSanityTests extends RestTest
|
||||
peopleApi.deleteSiteMembershipRequest(randomUser, siteModel);
|
||||
peopleApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN);
|
||||
}
|
||||
|
||||
@Bug(id="MNT-16904")
|
||||
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY,
|
||||
description = "Failed authentication get site member call returns status code 401")
|
||||
public void unauthenticatedUserIsNotAuthorizedToDeleteSiteMmebershipRequest() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
siteMember = dataUser.createRandomTestUser();
|
||||
restClient.authenticateUser(siteMember);
|
||||
peopleApi.addSiteMembershipRequest(siteMember, siteMembershipRequest);
|
||||
UserModel inexistentUser = new UserModel("inexistent user", "inexistent password");
|
||||
restClient.authenticateUser(inexistentUser);
|
||||
peopleApi.deleteSiteMembershipRequest(inexistentUser, siteModel);
|
||||
peopleApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user