Skip to content

Commit

Permalink
chore: fix pact test for system account
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Nov 27, 2023
1 parent 1bad036 commit 6526e90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/client_pact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,14 +739,15 @@ func TestTerraformClientPact(t *testing.T) {
WithHeader("Authorization", Like("Bearer 1234")).
WithJSONBody(Like(user)).
WillRespondWith(201).
WithHeader("Content-Type", S("application/hal+json"))
WithHeader("Content-Type", S("application/hal+json")).
WithHeader("Location", S(created.UUID))

err = mockProvider.ExecuteTest(t, func(config MockServerConfig) error {
client := clientForPact(config)

res, e := client.CreateSystemAccount(user)
assert.NoError(t, e)
assert.Equal(t, "system account", res.Name)
assert.Equal(t, created.UUID, res.UUID)

return e
})
Expand Down

0 comments on commit 6526e90

Please sign in to comment.