Skip to content

Commit

Permalink
chore: fixed update team assignment test
Browse files Browse the repository at this point in the history
  • Loading branch information
Saup21 committed Jun 13, 2024
1 parent 63a4f20 commit 22a2471
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion broker/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type TeamsAssignmentResponse struct {
}

type EmbeddedUsers = struct {
Users []User `json:"users,omitempty"`
Users []TeamUser `json:"users,omitempty"`
}

// Create POST /admin/teams
Expand Down
5 changes: 3 additions & 2 deletions client/client_pact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,12 @@ func TestTerraformClientPact(t *testing.T) {
b.JSONBody(Like(req))
}).
WillRespondWith(200, func(b *consumer.V2ResponseBuilder) {
b.Header("Content-Type", S("application/hal+json;charset=utf-8"))
b.JSONBody(broker.TeamsAssignmentResponse{
Embedded: broker.EmbeddedUsers{
Users: []broker.User{
Users: []broker.TeamUser{
{
UUID: "4c260344-b170-41eb-b01e-c0ff10c72f25",
UUID: "05064a18-229d-4dfd-b37c-f00ec9673a49",
Active: true,
},
},
Expand Down

0 comments on commit 22a2471

Please sign in to comment.