acc: Set X-Databricks-Org-Id on scim/v2/Me endpoint (#2349)

This is needed for b.WorkspaceClient().CurrentWorkspaceID(ctx) which is
used by initialize_urls.go mutator ("bundle summary") #2316

It also also needed for to call serverless detection endpoint #2348

Builds on top of #2338
This commit is contained in:
Denis Bilenko 2025-02-13 08:26:22 +01:00 committed by GitHub
parent a20894b1f2
commit fac9bcf1af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,10 @@ func AddHandlers(server *testserver.Server) {
})
server.Handle("GET", "/api/2.0/preview/scim/v2/Me", func(req testserver.Request) any {
return testUser
return testserver.Response{
Headers: map[string][]string{"X-Databricks-Org-Id": {"900800700600"}},
Body: testUser,
}
})
server.Handle("GET", "/api/2.0/workspace/get-status", func(req testserver.Request) any {