fix(tests): disable auth for spark test via env var instead of env file (#14148)

This commit is contained in:
Chakru 2025-07-19 21:50:03 +05:30 committed by GitHub
parent 0c74310e3e
commit fe56b0f41e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -99,7 +99,8 @@ ext {
':datahub-actions',
],
additionalEnv: [
'DATAHUB_LOCAL_COMMON_ENV': "${rootProject.project(':metadata-integration:java:spark-lineage-legacy').projectDir}/spark-smoke-test/smoke-gms.env"
'DATAHUB_LOCAL_COMMON_ENV': "${rootProject.project(':metadata-integration:java:spark-lineage-legacy').projectDir}/spark-smoke-test/smoke-gms.env",
'METADATA_SERVICE_AUTH_ENABLED': 'false'
]
],
'quickstartStorage': [

View File

@ -1,2 +1,4 @@
REST_API_AUTHORIZATION_ENABLED=false
METADATA_SERVICE_AUTH_ENABLED=false
# This does not work from an env file since this is also defined in the environment list which takes precedence over env files.
# This environment variable must be set to disable METADATA_SERVICE_AUTH_ENABLED
# METADATA_SERVICE_AUTH_ENABLED=false