[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review comments

This commit is contained in:
mohit-singh4
2024-10-18 17:30:44 +05:30
parent 9692257487
commit d49d4c2c1d

View File

@@ -156,7 +156,7 @@ public class NodeSizeDetailsTest extends AbstractBaseApiTest
assertNotNull("We are not getting correct response " + nodeSizeDetails, nodeSizeDetails.getStatus()); 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()); 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"); String jobId = (String) jsonObject.get("jobId");
assertNotNull("In response, JobId should be present", jobId); assertNotNull("In response, JobId should be present", jobId);
Thread.sleep(500);
HttpResponse getResponse = getSingle(getNodeSizeDetailsUrl(parentFolder, jobId), null, 200); HttpResponse getResponse = getSingle(getNodeSizeDetailsUrl(parentFolder, jobId), null, 200);
assertNotNull("After executing GET/size-details, it will provide NodeSizeDetails with 200 status code", assertNotNull("After executing GET/size-details, it will provide NodeSizeDetails with 200 status code",