REPO-1164: [REST API] 422 error when executing unlock on a node that is not locked

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2016-09-07 11:48:02 +00:00
parent b116553f31
commit 59eed12c13
2 changed files with 8 additions and 3 deletions

View File

@@ -3806,7 +3806,7 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest
setRequestContext(user1);
//Unlock on a not locked node
post(getNodeOperationUrl(folderId, "unlock"), null, null, 403);
post(getNodeOperationUrl(folderId, "unlock"), null, null, 422);
// clean up
setRequestContext(user1); // all locks were made by user1