mchades commented on code in PR #7215:
URL: https://github.com/apache/gravitino/pull/7215#discussion_r2118867149


##########
catalogs/catalog-hadoop/src/test/java/org/apache/gravitino/catalog/hadoop/integration/test/HadoopCatalogIT.java:
##########
@@ -151,6 +170,38 @@ private void dropSchema() {
     Assertions.assertFalse(catalog.asSchemas().schemaExists(schemaName));
   }
 
+  private String getFileInfos(NameIdentifier filesetIdent, String subPath, 
String locationName)
+      throws IOException {
+    String targetUrl =
+        "api/metalakes/"
+            + metalakeName
+            + "/catalogs/"
+            + catalogName
+            + "/schemas/"
+            + schemaName
+            + "/filesets/"
+            + filesetIdent.name()
+            + "/files";
+    Map<String, String> query = new HashMap<>();
+    if (!StringUtils.isBlank(subPath)) {
+      query.put("subPath", subPath);
+    }
+    if (!StringUtils.isBlank(locationName)) {
+      query.put("locationName", locationName);
+    }
+
+    FileInfoListResponse resp =
+        httpClient.get(

Review Comment:
   Sorry, we can't use `HTTPClient` here. Instead, we should use 
`CloseableHttpClient` because we need to assert the raw response body string.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to