mirror of https://github.com/databricks/cli.git
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:
parent
a20894b1f2
commit
fac9bcf1af
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue