mirror of https://github.com/databricks/cli.git
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:
parent
55c03cc119
commit
58ef34f320
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
"workspace": {
|
||||
"artifact_path": "/Users/$USERNAME/path/to/root/artifacts",
|
||||
"current_user": {
|
||||
"id": "$USER.Id",
|
||||
"short_name": "$USERNAME",
|
||||
"userName": "$USERNAME"
|
||||
},
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"artifact_path": "TestResolveVariableReferences/bar/artifacts",
|
||||
"current_user": {
|
||||
"id": "$USER.Id",
|
||||
"short_name": "$USERNAME",
|
||||
"userName": "$USERNAME"
|
||||
},
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"artifact_path": "TestResolveVariableReferencesToBundleVariables/bar/artifacts",
|
||||
"current_user": {
|
||||
"id": "$USER.Id",
|
||||
"short_name": "$USERNAME",
|
||||
"userName": "$USERNAME"
|
||||
},
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue