diff --git a/quarkus/defaults/src/main/resources/application.properties b/quarkus/defaults/src/main/resources/application.properties index cdb201903..c84ae5fe7 100644 --- a/quarkus/defaults/src/main/resources/application.properties +++ b/quarkus/defaults/src/main/resources/application.properties @@ -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 @@ -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 diff --git a/regtests/run_spark_sql.sh b/regtests/run_spark_sql.sh index cc355095e..7b1dcc2ea 100755 --- a/regtests/run_spark_sql.sh +++ b/regtests/run_spark_sql.sh @@ -48,6 +48,7 @@ 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 @@ -55,7 +56,7 @@ 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