diff --git a/broker/team.go b/broker/team.go index 4ac29cb..cc84b6b 100644 --- a/broker/team.go +++ b/broker/team.go @@ -63,7 +63,7 @@ type TeamsAssignmentResponse struct { } type EmbeddedUsers = struct { - Users []User `json:"users,omitempty"` + Users []TeamUser `json:"users,omitempty"` } // Create POST /admin/teams diff --git a/client/client_pact_test.go b/client/client_pact_test.go index 0e3a75f..fc8fa71 100644 --- a/client/client_pact_test.go +++ b/client/client_pact_test.go @@ -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, }, },