Skip to content

Commit

Permalink
chore: token regen test and webhooks test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Saup21 committed Jun 11, 2024
1 parent c49337d commit e2e8ca7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/client_pact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,7 @@ func TestTerraformClientPact(t *testing.T) {
}).
WillRespondWith(201, func(b *consumer.V2ResponseBuilder) {
b.Header("Content-Type", S("application/hal+json;charset=utf-8"))
b.JSONBody(Like(broker.APITokenResponse{
APIToken: readOnlytoken,
}))
b.JSONBody(Like(readOnlytoken))
})

err = mockProvider.ExecuteTest(t, func(config consumer.MockServerConfig) error {
Expand Down Expand Up @@ -1012,6 +1010,7 @@ func TestTerraformClientPact(t *testing.T) {
c, _ := copystructure.Copy(&webhook)
created := c.(*broker.Webhook)
created.ID = "2e4bf0e6-b0cf-451f-b05b-69048955f019"
created.Request.Password = ""

t.Run("CreateWebhook", func(t *testing.T) {

Expand Down

0 comments on commit e2e8ca7

Please sign in to comment.