mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.1) to HEAD (5.2)
130868 jvonka: REPO-1027: V1 REST API - fix error handling (get site membership request) - fix error code (should be 404 not 500) & add -ve api test - ACE-2049 / ACE-5442 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132194 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -350,6 +350,21 @@ public class TestSiteMembershipRequests extends EnterpriseTestApi
|
||||
{
|
||||
assertEquals(HttpStatus.SC_NOT_FOUND, e.getHttpResponse().getStatusCode());
|
||||
}
|
||||
|
||||
// ACE-2409 / ACE-5442
|
||||
// get site membership request for unknown site
|
||||
try
|
||||
{
|
||||
publicApiClient.setRequestContext(new RequestContext(network1.getId(), person11Id));
|
||||
|
||||
siteMembershipRequestsProxy.getSiteMembershipRequest(person11Id, GUID.generate());
|
||||
|
||||
fail("");
|
||||
}
|
||||
catch(PublicApiException e)
|
||||
{
|
||||
assertEquals(HttpStatus.SC_NOT_FOUND, e.getHttpResponse().getStatusCode());
|
||||
}
|
||||
|
||||
// DELETEs
|
||||
{
|
||||
|
Reference in New Issue
Block a user