dimas-b commented on code in PR #1126:
URL: https://github.com/apache/polaris/pull/1126#discussion_r2021363139


##########
integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisRestCatalogIntegrationTest.java:
##########
@@ -254,6 +233,28 @@ protected RESTCatalog catalog() {
     return restCatalog;
   }
 
+  /**
+   * Initialize a RESTCatalog for testing.
+   *
+   * @param catalogName this parameter is currently unused.
+   * @param additionalProperties additional properties to apply on top of the 
default test settings
+   * @return a configured instance of RESTCatalog
+   */
+  @Override
+  protected RESTCatalog initCatalog(String catalogName, Map<String, String> 
additionalProperties) {
+    ImmutableMap.Builder<String, String> extraPropertiesBuilder = 
ImmutableMap.builder();
+    for (int i = 0; i < restCatalogConfig.length; i += 2) {
+      extraPropertiesBuilder.put(restCatalogConfig[i], restCatalogConfig[i + 
1]);

Review Comment:
   Would it not be easier if `restCatalogConfig` were a `Map<String, 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