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.
This commit is contained in:
Alexandru-Eusebiu Epure
2017-09-01 11:33:34 +03:00
parent eda37669f0
commit e9912b74a0
@@ -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());
}
}