REPO-2116

Created a new get method for Renditions(getNodeRenditionUntilTheyAreCreated), that waits for the renditions to be created.
      Modified 3 tests from the CreateRenditionsTests.java class (adminCanCreateRenditionToExistingNode(), userThatCreatedFileCanCreatePdfRenditionForIt(),userThatCreatedFileCanCreateDoclibRenditionForIt()) in order to pass on slower machines.
This commit is contained in:
NESS\P3700654
2017-05-10 10:06:41 +03:00
parent 3e0b203e40
commit e89a6d2f87
@@ -52,7 +52,7 @@ public class CreateRenditionTests extends RestTest
restClient.authenticateUser(adminUser).withCoreAPI().usingNode(document).createNodeRendition("pdf");
restClient.assertStatusCodeIs(HttpStatus.ACCEPTED);
restClient.withCoreAPI().usingNode(document).getNodeRendition("pdf")
restClient.withCoreAPI().usingNode(document).getNodeRenditionUntilTheyAreCreated("pdf")
.assertThat().field("status").is("CREATED");
}
@@ -65,7 +65,7 @@ public class CreateRenditionTests extends RestTest
restClient.authenticateUser(user).withCoreAPI().usingNode(document).createNodeRendition("pdf");
restClient.assertStatusCodeIs(HttpStatus.ACCEPTED);
restClient.withCoreAPI().usingNode(document).getNodeRendition("pdf")
restClient.withCoreAPI().usingNode(document).getNodeRenditionUntilTheyAreCreated("pdf")
.assertThat().field("status").is("CREATED");
}
@@ -89,7 +89,7 @@ public class CreateRenditionTests extends RestTest
restClient.authenticateUser(user).withCoreAPI().usingNode(document).createNodeRendition("doclib");
restClient.assertStatusCodeIs(HttpStatus.ACCEPTED);
restClient.withCoreAPI().usingNode(document).getNodeRendition("doclib")
restClient.withCoreAPI().usingNode(document).getNodeRenditionUntilTheyAreCreated("doclib")
.assertThat().field("status").is("CREATED");
}
}