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:
Alan Davis
2016-11-03 13:13:44 +00:00
parent 2896dc6b83
commit 42b43437bc

View File

@@ -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);