Where to enable pending Pact in Open Source Pact Broker

108 Views Asked by At

We want to prevent our Pact Provider Tests to fail if the Consumer publishes a new/updated Pact. For that I add in failsafe Plugin. We are using Maven and Java

<pactbroker.enablePending>true</pactbroker.enablePending>
<pactbroker.providerTags>main</pactbroker.providerTags>
</systemProperties>

But I am not sure if I also have to configure the Open Source Pact Broker. In the pact I never see the pending flag set to true

If I have a pact which is green and I change it and publish it I would expect pendung to be true. That's my understanding

1

There are 1 best solutions below

4
Matthew Fellows On

Pending is not a status on a contract, it is dynamically calculated based on a number of factors. See https://docs.pact.io/pact_broker/advanced_topics/pending_pacts.

You enable the setting on the provider wide to prevent your provider build breaking on new changes - this

See https://docs.pactflow.io/docs/workshops/ci-cd/ for a workshop that explains how it works