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)
130641 cmocanu: REPO-164 - Added new negative unit test for includeChildren: try to lock using includeChildren parameter that has been removed and 400 response code is retrieved. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132159 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -3778,6 +3778,10 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest
|
||||
body.put("lifetime", "PERSISTENT123");
|
||||
post(getNodeOperationUrl(dC1Id, "lock"), toJsonAsStringNonNull(body), null, 400);
|
||||
|
||||
body = new HashMap<>();
|
||||
body.put("includeChildren", "true");
|
||||
post(getNodeOperationUrl(dC1Id, "lock"), toJsonAsStringNonNull(body), null, 400);
|
||||
|
||||
body = new HashMap<>();
|
||||
body.put("timeToExpire", "NaN");
|
||||
post(getNodeOperationUrl(dC1Id, "lock"), toJsonAsStringNonNull(body), null, 400);
|
||||
@@ -3845,6 +3849,7 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest
|
||||
post(getNodeOperationUrl(d1Id, "unlock"), null, null, 403);
|
||||
|
||||
setRequestContext(user1);
|
||||
|
||||
//Unlock on a not locked node
|
||||
post(getNodeOperationUrl(folderId, "unlock"), null, null, 422);
|
||||
|
||||
|
Reference in New Issue
Block a user