From 3c2bb4e7c198aea7d6995ed669e79888db5ff68f Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Fri, 20 Dec 2024 13:49:08 +0100 Subject: [PATCH] disable $DATABRICKS_AUTH_TYPE and add a comment --- internal/testcli/golden.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/testcli/golden.go b/internal/testcli/golden.go index cb24c4568d..4f9bbb0e91 100644 --- a/internal/testcli/golden.go +++ b/internal/testcli/golden.go @@ -118,6 +118,7 @@ type ReplacementsContext struct { } func (r *ReplacementsContext) Replace(s string) string { + // QQQ Should probably only replace whole words for _, repl := range r.Repls { s = strings.ReplaceAll(s, repl.Old, repl.New) } @@ -181,7 +182,8 @@ func PrepareReplacements(t testutil.TestingT, r *ReplacementsContext, w *databri r.Set(w.Config.ClientID, "$DATABRICKS_CLIENT_ID") r.Set(w.Config.ClientSecret, "$DATABRICKS_CLIENT_SECRET") r.Set(w.Config.DatabricksCliPath, "$DATABRICKS_CLI_PATH") - r.Set(w.Config.AuthType, "$DATABRICKS_AUTH_TYPE") + // This is set to words like "path" that happen too frequently + //r.Set(w.Config.AuthType, "$DATABRICKS_AUTH_TYPE") } func PrepareReplacementsUser(t testutil.TestingT, r *ReplacementsContext, u iam.User) {