Skip to content

Commit

Permalink
acc: Include "Id" into /api/2.0/preview/scim/v2/Me response
Browse files Browse the repository at this point in the history
This is something terraform provider expects.
  • Loading branch information
denik committed Jan 29, 2025
1 parent 55c03cc commit 274f56d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acceptance/bundle/variables/git-branch/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"workspace": {
"artifact_path": "/Workspace/Users/$USERNAME/.bundle/git/prod/artifacts",
"current_user": {
"id": "$USERNAME",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},
Expand Down Expand Up @@ -78,6 +79,7 @@ Validation OK!
"workspace": {
"artifact_path": "/Workspace/Users/$USERNAME/.bundle/git/dev/artifacts",
"current_user": {
"id": "$USERNAME",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"workspace": {
"artifact_path": "/Users/$USERNAME/path/to/root/artifacts",
"current_user": {
"id": "$USERNAME",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},
Expand Down
1 change: 1 addition & 0 deletions acceptance/bundle/variables/resolve-builtin/output.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"artifact_path": "TestResolveVariableReferences/bar/artifacts",
"current_user": {
"id": "$USERNAME",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"artifact_path": "TestResolveVariableReferencesToBundleVariables/bar/artifacts",
"current_user": {
"id": "$USERNAME",
"short_name": "$USERNAME",
"userName": "$USERNAME"
},
Expand Down
1 change: 1 addition & 0 deletions acceptance/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]",
UserName: "[email protected]",
}, nil
})
Expand Down

0 comments on commit 274f56d

Please sign in to comment.