Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
import org.apache.polaris.core.admin.model.StorageConfigInfo;

/** Runs PolarisRestCatalogIntegrationBase test on Azure. */
public abstract class PolarisRestCatalogAzureIntegrationTestBase
public abstract class PolarisRestCatalogAdlsIntegrationTestBase
extends PolarisRestCatalogIntegrationBase {
public static final String TENANT_ID = System.getenv("INTEGRATION_TEST_AZURE_TENANT_ID");
public static final String BASE_LOCATION = System.getenv("INTEGRATION_TEST_AZURE_PATH");
public static final String TENANT_ID = System.getenv("INTEGRATION_TEST_ADLS_TENANT_ID");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrew4699 : is that change ok from your POV?

Copy link
Contributor

@andrew4699 andrew4699 Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renaming this will certainly break things that depend on it, but I haven't been involved with the latest guidelines on changes that break internal "interfaces", so I'd defer to what the status quo is.

Copy link
Contributor Author

@tmater tmater Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into it @dimas-b & @andrew4699! Makes sense, reverted the env rename part.

public static final String BASE_LOCATION = System.getenv("INTEGRATION_TEST_ADLS_PATH");

@Override
protected StorageConfigInfo getStorageConfigInfo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.apache.polaris.core.admin.model.StorageConfigInfo;

/** Runs PolarisRestCatalogIntegrationBase test on GCP. */
public abstract class PolarisRestCatalogGcpIntegrationTestBase
public abstract class PolarisRestCatalogGcsIntegrationTestBase
extends PolarisRestCatalogIntegrationBase {
public static final String SERVICE_ACCOUNT =
System.getenv("INTEGRATION_TEST_GCS_SERVICE_ACCOUNT");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.apache.polaris.core.admin.model.StorageConfigInfo;

/** Runs PolarisRestCatalogIntegrationBase test on AWS. */
public abstract class PolarisRestCatalogAwsIntegrationTestBase
public abstract class PolarisRestCatalogS3IntegrationTestBase
extends PolarisRestCatalogIntegrationBase {
public static final String ROLE_ARN =
Optional.ofNullable(System.getenv("INTEGRATION_TEST_ROLE_ARN"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import org.apache.polaris.core.admin.model.StorageConfigInfo;

/** Runs PolarisRestCatalogViewIntegrationTest on Azure. */
public class PolarisRestCatalogViewAzureIntegrationTest
public abstract class PolarisRestCatalogViewAdlsIntegrationTestBase
extends PolarisRestCatalogViewIntegrationBase {
public static final String TENANT_ID = System.getenv("INTEGRATION_TEST_AZURE_TENANT_ID");
public static final String BASE_LOCATION = System.getenv("INTEGRATION_TEST_AZURE_PATH");
public static final String TENANT_ID = System.getenv("INTEGRATION_TEST_ADLS_TENANT_ID");
public static final String BASE_LOCATION = System.getenv("INTEGRATION_TEST_ADLS_PATH");

@Override
protected StorageConfigInfo getStorageConfigInfo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import org.apache.polaris.core.admin.model.StorageConfigInfo;

/** Runs PolarisRestCatalogViewIntegrationTest on GCP. */
public class PolarisRestCatalogViewGcpIntegrationTest
public abstract class PolarisRestCatalogViewGcsIntegrationTestBase
extends PolarisRestCatalogViewIntegrationBase {
public static final String SERVICE_ACCOUNT =
System.getenv("INTEGRATION_TEST_GCS_SERVICE_ACCOUNT");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.polaris.core.admin.model.StorageConfigInfo;

/** Runs PolarisRestCatalogViewIntegrationTest on AWS. */
public class PolarisRestCatalogViewAwsIntegrationTest
public abstract class PolarisRestCatalogViewS3IntegrationTestBase
extends PolarisRestCatalogViewIntegrationBase {
public static final String ROLE_ARN =
Optional.ofNullable(System.getenv("INTEGRATION_TEST_ROLE_ARN")) // Backward compatibility
Expand Down
8 changes: 4 additions & 4 deletions runtime/service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export INTEGRATION_TEST_S3_PATH="s3://bucket/subpath"
export INTEGRATION_TEST_S3_ROLE_ARN="your-role-arn"
./gradlew :polaris-runtime-service:cloudTest
```
For Azure:
For ADLS:
```shell
export INTEGRATION_TEST_AZURE_PATH="abfss://bucket/subpath"
export INTEGRATION_TEST_AZURE_TENANT_ID="your-tenant-id"
export INTEGRATION_TEST_ADLS_PATH="abfss://bucket/subpath"
export INTEGRATION_TEST_ADLS_TENANT_ID="your-tenant-id"
./gradlew :polaris-runtime-service:cloudTest
```
```
For GCS:
```shell
export INTEGRATION_TEST_GCS_PATH="gs://bucket/subpath"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
package org.apache.polaris.service.it;

import io.quarkus.test.junit.QuarkusIntegrationTest;
import org.apache.polaris.service.it.test.PolarisRestCatalogAzureIntegrationTestBase;
import org.apache.polaris.service.it.test.PolarisRestCatalogAdlsIntegrationTestBase;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;

@QuarkusIntegrationTest
@EnabledIfEnvironmentVariable(named = "INTEGRATION_TEST_AZURE_PATH", matches = ".+")
public class RestCatalogAzureIT extends PolarisRestCatalogAzureIntegrationTestBase {}
@EnabledIfEnvironmentVariable(named = "INTEGRATION_TEST_ADLS_PATH", matches = ".+")
public class RestCatalogAdlsIT extends PolarisRestCatalogAdlsIntegrationTestBase {}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
package org.apache.polaris.service.it;

import io.quarkus.test.junit.QuarkusIntegrationTest;
import org.apache.polaris.service.it.test.PolarisRestCatalogGcpIntegrationTestBase;
import org.apache.polaris.service.it.test.PolarisRestCatalogGcsIntegrationTestBase;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;

@QuarkusIntegrationTest
@EnabledIfEnvironmentVariable(named = "INTEGRATION_TEST_GCS_PATH", matches = ".+")
public class RestCatalogGcpIT extends PolarisRestCatalogGcpIntegrationTestBase {}
public class RestCatalogGcsIT extends PolarisRestCatalogGcsIntegrationTestBase {}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
package org.apache.polaris.service.it;

import io.quarkus.test.junit.QuarkusIntegrationTest;
import org.apache.polaris.service.it.test.PolarisRestCatalogAwsIntegrationTestBase;
import org.apache.polaris.service.it.test.PolarisRestCatalogS3IntegrationTestBase;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;

@QuarkusIntegrationTest
@EnabledIfEnvironmentVariable(named = "INTEGRATION_TEST_S3_PATH", matches = ".+")
public class RestCatalogAwsIT extends PolarisRestCatalogAwsIntegrationTestBase {}
public class RestCatalogS3IT extends PolarisRestCatalogS3IntegrationTestBase {}
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
import java.lang.reflect.Field;
import java.nio.file.Path;
import org.apache.iceberg.view.ViewCatalogTests;
import org.apache.polaris.service.it.test.PolarisRestCatalogViewAzureIntegrationTest;
import org.apache.polaris.service.it.test.PolarisRestCatalogViewAdlsIntegrationTestBase;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.junit.jupiter.api.io.TempDir;

@QuarkusIntegrationTest
@EnabledIfEnvironmentVariable(named = "INTEGRATION_TEST_AZURE_PATH", matches = ".+")
public class RestCatalogViewAzureIT extends PolarisRestCatalogViewAzureIntegrationTest {
@EnabledIfEnvironmentVariable(named = "INTEGRATION_TEST_ADLS_PATH", matches = ".+")
public class RestCatalogViewAdlsIT extends PolarisRestCatalogViewAdlsIntegrationTestBase {

@BeforeEach
public void setUpTempDir(@TempDir Path tempDir) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
import java.lang.reflect.Field;
import java.nio.file.Path;
import org.apache.iceberg.view.ViewCatalogTests;
import org.apache.polaris.service.it.test.PolarisRestCatalogViewGcpIntegrationTest;
import org.apache.polaris.service.it.test.PolarisRestCatalogViewGcsIntegrationTestBase;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.junit.jupiter.api.io.TempDir;

@QuarkusIntegrationTest
@EnabledIfEnvironmentVariable(named = "INTEGRATION_TEST_GCS_PATH", matches = ".+")
public class RestCatalogViewGcpIT extends PolarisRestCatalogViewGcpIntegrationTest {
public class RestCatalogViewGcsIT extends PolarisRestCatalogViewGcsIntegrationTestBase {

@BeforeEach
public void setUpTempDir(@TempDir Path tempDir) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
import java.lang.reflect.Field;
import java.nio.file.Path;
import org.apache.iceberg.view.ViewCatalogTests;
import org.apache.polaris.service.it.test.PolarisRestCatalogViewAwsIntegrationTest;
import org.apache.polaris.service.it.test.PolarisRestCatalogViewS3IntegrationTestBase;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.junit.jupiter.api.io.TempDir;

@QuarkusIntegrationTest
@EnabledIfEnvironmentVariable(named = "INTEGRATION_TEST_S3_PATH", matches = ".+")
public class RestCatalogViewAwsIT extends PolarisRestCatalogViewAwsIntegrationTest {
public class RestCatalogViewS3IT extends PolarisRestCatalogViewS3IntegrationTestBase {

@BeforeEach
public void setUpTempDir(@TempDir Path tempDir) throws Exception {
Expand Down