Skip to content

Commit cecc28d

Browse files
committed
fix(tests): disable auth for spark test via env var instead of env file (#14148)
1 parent a0f3442 commit cecc28d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docker/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ ext {
9999
':datahub-actions',
100100
],
101101
additionalEnv: [
102-
'DATAHUB_LOCAL_COMMON_ENV': "${rootProject.project(':metadata-integration:java:spark-lineage-legacy').projectDir}/spark-smoke-test/smoke-gms.env"
102+
'DATAHUB_LOCAL_COMMON_ENV': "${rootProject.project(':metadata-integration:java:spark-lineage-legacy').projectDir}/spark-smoke-test/smoke-gms.env",
103+
'METADATA_SERVICE_AUTH_ENABLED': 'false'
103104
]
104105
],
105106
'quickstartStorage': [
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
REST_API_AUTHORIZATION_ENABLED=false
2-
METADATA_SERVICE_AUTH_ENABLED=false
2+
# This does not work from an env file since this is also defined in the environment list which takes precedence over env files.
3+
# This environment variable must be set to disable METADATA_SERVICE_AUTH_ENABLED
4+
# METADATA_SERVICE_AUTH_ENABLED=false

0 commit comments

Comments
 (0)