Skip to content

Commit

Permalink
[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review c…
Browse files Browse the repository at this point in the history
…omments
  • Loading branch information
mohit-singh4 committed Oct 18, 2024
1 parent 9692257 commit d49d4c2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void testPostAndGetFolderSizeDetails() throws Exception

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);

}

Expand Down Expand Up @@ -205,6 +205,8 @@ public void testPerformanceTesting() throws Exception
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",
Expand Down

0 comments on commit d49d4c2

Please sign in to comment.