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