mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
TAS-1116
This commit is contained in:
@@ -59,4 +59,15 @@ public class RestGetNetworkForPersonSanityTests extends RestTest
|
|||||||
networkApi.getNetworkForUser(adminTenantUser);
|
networkApi.getNetworkForUser(adminTenantUser);
|
||||||
networkApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK);
|
networkApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test(groups = "sanity")
|
||||||
|
@TestRail(section = { "rest-api",
|
||||||
|
"networks" }, executionType = ExecutionType.SANITY, description = "Verify tenant user is not authorized to check network of another user with Rest API and checks the forbidden status")
|
||||||
|
public void tenantUserIsNotAuthorizedToCheckNetworkOfAnotherUser() throws Exception
|
||||||
|
{
|
||||||
|
restClient.authenticateUser(tenantUser);
|
||||||
|
networkApi.getNetworkForUser(adminTenantUser);
|
||||||
|
networkApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.UNAUTHORIZED);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user