Skip to content

Commit 1b87b08

Browse files
committed
Filter .well-known/databricks-config from acceptance test request recording
The SDK now calls /.well-known/databricks-config during config initialization. Skip recording these requests so acceptance tests don't need updated output files. Co-authored-by: Isaac
1 parent c0fda17 commit 1b87b08

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

acceptance/internal/prepare_server.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ func recordRequestsCallback(t *testing.T, includeHeaders []string, outputDir str
131131
mu := sync.Mutex{}
132132

133133
return func(request *testserver.Request) {
134+
// Skip SDK discovery requests from test recordings. The SDK calls
135+
// this endpoint during config initialization and it is not relevant
136+
// to the behavior under test.
137+
if request.URL.Path == "/.well-known/databricks-config" {
138+
return
139+
}
140+
134141
mu.Lock()
135142
defer mu.Unlock()
136143

0 commit comments

Comments
 (0)