airbyte-integrations/connectors/destination-gcs-data-lake/src/test-integration/resources/polaris/README.md
This directory contains the configuration for running Polaris integration tests with GCS storage.
For a detailed explanation of Apache Polaris concepts, architecture, and how the test environment works, see: S3 Data Lake Polaris README
The GCS variant uses the same Polaris setup but with Google Cloud Storage instead of S3/MinIO.
Replace the contents of the file:
airbyte-integrations/connectors/destination-gcs-data-lake/src/test-integration/resources/polaris/secrets-2/gcs-sa.json
With your actual GCS service account JSON credentials. The file should contain the complete service account JSON:
Edit the file src/test-integration/kotlin/io/airbyte/integrations/destination/gcs_data_lake/PolarisEnvironment.kt:
Update the following constants with your GCS details:
// Update with your GCS bucket name
private const val BUCKET = "your-bucket-name"
// Update with your service account email
// IMPORTANT: Must include the "serviceAccount:" prefix
private const val GCS_SERVICE_ACCOUNT =
"serviceAccount:[email protected]"
// Update with your GCP location (e.g., "us", "eu", "asia-northeast1")
private const val GCP_LOCATION = "us"
Note: The service account credentials will be automatically loaded from the secrets-2/gcs-sa.json file.
The Polaris integration tests are marked as @Disabled by default since they require manual setup.
To run them, execute:
./gradlew :airbyte-integrations:connectors:destination-gcs-data-lake:integrationTestNonDocker \
--tests "*PolarisWriteTest"
When you run the test:
PolarisEnvironment.startServices() starts Docker Compose with Polaris and PostgreSQL