Closed garry-jeromson closed 4 years ago
The cause of the issue is more or less confirmed by the webhook API docs: https://docs.pact.io/pact_broker/advanced_topics/api_docs/webhooks.
v0.0.3
is currently on the way out with this fix (see https://travis-ci.org/github/pactflow/terraform/builds/698870592).
Description
When creating a
pact_webhook
resource, supplyingcontract_changed_event
(as suggested in the examples and documentation) in the list of values for theevent
attribute leads to an "Error: bad request" failure when running aterraform apply
:At first glance, it would seem like
contract_changed_event
is the wrong event type value to pass to the API; it's inconsistent with the broker client, which uses the valuecontract_content_changed
.