Skip to content

Commit

Permalink
Fix the Polaris test credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Yufei Gu committed Jan 24, 2025
1 parent ee26660 commit f14cc67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions quarkus/defaults/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ polaris.authentication.token-broker.max-token-generation=PT1H
# polaris.storage.gcp.token=token
# polaris.storage.gcp.lifespan=PT1H

# Test-specific configuration
%test.quarkus.log.file.enable=false
%test.quarkus.log.category."org.apache.polaris".level=INFO
%test.quarkus.log.category."org.apache.iceberg.rest".level=INFO
Expand All @@ -130,6 +131,8 @@ polaris.authentication.token-broker.max-token-generation=PT1H
%test.quarkus.log.category."org.apache.polaris.service.storage.PolarisStorageIntegrationProviderImpl".level=ERROR
%test.quarkus.http.limits.max-body-size=1000000
%test.quarkus.otel.sdk.disabled=true
%test.polaris.authentication.authenticator.type=test
%test.polaris.authentication.token-service.type=test
%test.polaris.authentication.token-broker.type=symmetric-key
%test.polaris.authentication.token-broker.symmetric-key.secret=polaris
%test.polaris.features.defaults."ALLOW_EXTERNAL_CATALOG_CREDENTIAL_VENDING"=false
Expand Down
3 changes: 2 additions & 1 deletion regtests/run_spark_sql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ cd ${REGTEST_HOME}

export SPARK_VERSION=spark-3.5.3
export SPARK_DISTRIBUTION=${SPARK_VERSION}-bin-hadoop3
export SPARK_LOCAL_HOSTNAME=localhost #avoid VPN messy up driver local IP address binding

./setup.sh

if [ -z "${SPARK_HOME}"]; then
export SPARK_HOME=$(realpath ~/${SPARK_DISTRIBUTION})
fi

SPARK_BEARER_TOKEN="${REGTEST_ROOT_BEARER_TOKEN:-principal:root;realm:default-realm}"
SPARK_BEARER_TOKEN="${REGTEST_ROOT_BEARER_TOKEN:-principal:root;realm:polaris}"

if [ $# -eq 0 ]; then
# create a catalog backed by the local filesystem
Expand Down

0 comments on commit f14cc67

Please sign in to comment.