acc: Include "id" into /api/2.0/preview/scim/v2/Me response (#2266)

This is something terraform provider expects.

Related to https://github.com/databricks/cli/pull/2242
This commit is contained in:
Denis Bilenko 2025-01-29 18:35:03 +01:00 committed by GitHub
parent 55c03cc119
commit 58ef34f320
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,7 @@
"workspace": {
"artifact_path": "/Workspace/Users/$USERNAME/.bundle/git/prod/artifacts",
"current_user": {
"id": "$USER.Id",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},
@ -78,6 +79,7 @@ Validation OK!
"workspace": {
"artifact_path": "/Workspace/Users/$USERNAME/.bundle/git/dev/artifacts",
"current_user": {
"id": "$USER.Id",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},

View File

@ -54,6 +54,7 @@
"workspace": {
"artifact_path": "/Users/$USERNAME/path/to/root/artifacts",
"current_user": {
"id": "$USER.Id",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},

View File

@ -1,6 +1,7 @@
{
"artifact_path": "TestResolveVariableReferences/bar/artifacts",
"current_user": {
"id": "$USER.Id",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},

View File

@ -1,6 +1,7 @@
{
"artifact_path": "TestResolveVariableReferencesToBundleVariables/bar/artifacts",
"current_user": {
"id": "$USER.Id",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},

View File

@ -54,6 +54,7 @@ func AddHandlers(server *testserver.Server) {
server.Handle("GET /api/2.0/preview/scim/v2/Me", func(r *http.Request) (any, error) {
return iam.User{
Id: "1000012345",
UserName: "tester@databricks.com",
}, nil
})