From e9912b74a015be3e0070bf1aef9f816ebbc7b49f Mon Sep 17 00:00:00 2001 From: Alexandru-Eusebiu Epure Date: Fri, 1 Sep 2017 11:33:34 +0300 Subject: [PATCH] REPO-2299 : Implement TAS tests for 'Nodes' RestApi endpoint - part 1 Add an additional step to testCopyNode(), unlocking the used node because other tests were failing. --- e2e-test/java/org/alfresco/rest/nodes/NodesContentTests.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e2e-test/java/org/alfresco/rest/nodes/NodesContentTests.java b/e2e-test/java/org/alfresco/rest/nodes/NodesContentTests.java index e5fe2f057..bc4b57980 100644 --- a/e2e-test/java/org/alfresco/rest/nodes/NodesContentTests.java +++ b/e2e-test/java/org/alfresco/rest/nodes/NodesContentTests.java @@ -155,5 +155,10 @@ public class NodesContentTests extends RestTest assertTrue(initialNode.getIsLocked()); assertSame(copiedNode.getContent().getSizeInBytes(), initialNode.getContent().getSizeInBytes()); assertFalse(copiedNode.getIsLocked()); + + STEP("4. Unlock the node (this node may be used in the next tests)."); + initialNode = restClient.authenticateUser(user1).withCoreAPI().usingNode(file1).usingParams("include=isLocked").unlockNode(); + restClient.assertStatusCodeIs(HttpStatus.OK); + assertFalse(initialNode.getIsLocked()); } }