Hello. I am on the quest to find the ideal contract test, and I have a question about the collaboration in the pact broker. I took the following notes word for word(mostly) from
Step one, test the consumer by having it talk to a mock of the provider. We send a http request, we get an http responsePack mock checks:
1. Consumer makes the correct call to API
2. Consumer code can handle the responseStep two, at the end of the test session, all the the request are going to go into the pact broker (like pact flow) and that’s we’re we are going to share the version and collaborate in the contract
What did he mean by “collaborate on the contract”?
not sure 1
m
Matt (pactflow.io / pact-js / pact-go)
05/02/2022, 10:13 PM
I meant that it’s where the contract is stored and managed. Think of it a bit like Git and Github.
You use Git locally (Pact) and you push your code to Github (Pactflow), where it is versioned, managed etc.
Matt (pactflow.io / pact-js / pact-go)
05/02/2022, 10:13 PM
It’s the point of collaboration, because the provider side will use Pactflow to pull down the contracts to verify, and publish the results of the verification to