mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-01 14:41:46 +00:00
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review comments
This commit is contained in:
@@ -156,7 +156,7 @@ public class NodeSizeDetailsTest extends AbstractBaseApiTest
|
||||
|
||||
assertNotNull("We are not getting correct response " + nodeSizeDetails, nodeSizeDetails.getStatus());
|
||||
assertEquals("SizeDetails hasn't been calculated yet, current status -" + nodeSizeDetails.getStatus().name() + "]", status, nodeSizeDetails.getStatus().name());
|
||||
assertTrue("We are not getting size greater than 0", nodeSizeDetails.getSizeInBytes() > 0L);
|
||||
assertTrue("We are not getting size greater than 0 " + nodeSizeDetails, nodeSizeDetails.getSizeInBytes() > 0L);
|
||||
|
||||
}
|
||||
|
||||
@@ -205,6 +205,8 @@ public class NodeSizeDetailsTest extends AbstractBaseApiTest
|
||||
String jobId = (String) jsonObject.get("jobId");
|
||||
assertNotNull("In response, JobId should be present", jobId);
|
||||
|
||||
Thread.sleep(500);
|
||||
|
||||
HttpResponse getResponse = getSingle(getNodeSizeDetailsUrl(parentFolder, jobId), null, 200);
|
||||
|
||||
assertNotNull("After executing GET/size-details, it will provide NodeSizeDetails with 200 status code",
|
||||
|
Reference in New Issue
Block a user