set X-Databricks-Org-Id on /Me endpoint

This commit is contained in:
Denis Bilenko 2025-02-12 11:37:16 +01:00
parent 7670786f09
commit 27cb55e46f
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 {