[feature/MNT-24127-EndpointToCalculateFolderSize] Addressing review comments related to calculate and retrieve folder size details

This commit is contained in:
mohit-singh4
2024-10-07 16:41:34 +05:30
parent 79e2cb6342
commit 18901c779d
2 changed files with 9 additions and 7 deletions

View File

@@ -144,7 +144,8 @@ public class NodeSizeDetailsTest extends AbstractBaseApiTest
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",
getResponse.getJsonResponse()); getResponse.getJsonResponse());
NodeSizeDetails nodeSizeDetails = NodeSizeDetails.parseNodeSizeDetails((JSONObject) getResponse.getJsonResponse() NodeSizeDetails nodeSizeDetails = NodeSizeDetails.parseNodeSizeDetails(
(JSONObject) getResponse.getJsonResponse()
.get("entry")); .get("entry"));
assertNotNull("We are not getting correct response " + nodeSizeDetails, nodeSizeDetails.getStatus()); assertNotNull("We are not getting correct response " + nodeSizeDetails, nodeSizeDetails.getStatus());
@@ -205,7 +206,8 @@ public class NodeSizeDetailsTest extends AbstractBaseApiTest
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",
getResponse.getJsonResponse()); getResponse.getJsonResponse());
NodeSizeDetails nodeSizeDetails = NodeSizeDetails.parseNodeSizeDetails((JSONObject) getResponse.getJsonResponse() NodeSizeDetails nodeSizeDetails = NodeSizeDetails.parseNodeSizeDetails(
(JSONObject) getResponse.getJsonResponse()
.get("entry")); .get("entry"));
assertNotNull("We are not getting correct response " + nodeSizeDetails, nodeSizeDetails.getStatus()); assertNotNull("We are not getting correct response " + nodeSizeDetails, nodeSizeDetails.getStatus());