mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user