Closed konalegi closed 2 years ago
Btw, what extra params are you adding? Is it something we just might want to support properly?
@bethesque it's complicated, in general We are adapting pact tools (pact-provider-verifier, pact, pact-broker-client) to support apollo graphql gateway in our infrastructure. but for this specifically, we call intermediate service after pact file has been verified.
::RSpec.configure do |config|
config.before(:all) do
client.call('/pact_file_about_to_verify', { pact_url: pact_uri.uri })
end
config.after(:all) do
client.call('/pact_file_verification_complete', { pact_url: pact_uri.uri })
end
end
I'm sure we are going to share our experience once we complete our work.
Hey @konalegi ,
Just going through old PR's, how did you get on?
I'm going to close this, but we can reopen if necessary.
I've noticed that, during provider verification, if I have more than one pact file to verify, monkey changes are applied just for the first verification. I'm adding extra config params to
Pact.configure
andRspec.configure
, which are being cleared up on each pact file verification.Even if theoretically it could be breaking change, @bethesque suggested to changes require to load without any switch. Original PR https://github.com/pact-foundation/pact-provider-verifier/pull/68