pact-foundation / pact-ruby

Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://pact.io
MIT License
2.17k stars 216 forks source link

Verify when the provider has no matching Pacts #272

Closed jmortlock closed 3 months ago

jmortlock commented 2 years ago

We are currently in the process of rebuilding our pact broker database (moving to Postgres) so all our consumers/providers need to to republished and verified.

It would be nice that if pact broker has no matching pacts to verify that it does not hard fail.

Currently you hit the following line of code: raise "Please configure a pact to verify" if pact_urls.empty?

Workaround we are currently using is to add a custom envvar that we check during build to disable verification checking.

bethesque commented 2 years ago

The CLI has this option, so it should be easy to add.