pact-ruby icon indicating copy to clipboard operation
pact-ruby copied to clipboard

Verify when the provider has no matching Pacts

Open jmortlock opened this issue 3 years ago • 1 comments

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.

jmortlock avatar Sep 06 '22 08:09 jmortlock

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

bethesque avatar Sep 06 '22 23:09 bethesque