Mayank Chugh
03/02/2023, 12:49 PMMayank Chugh
03/02/2023, 12:50 PMcontract_requiring_verification_published event in case there is a change in consumer contractMayank Chugh
03/02/2023, 12:51 PMconsumerVersionSelectors: [
{
latest: true,
deployed: true,
mainBranch: true,
}
],Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Mayank Chugh
03/02/2023, 12:52 PMpactUrl supplied by the webhook, the provider spec successfully pulls the contract from the url.
But also then tries to fetch the pact using the consumerVersionSelectorsYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Mayank Chugh
03/02/2023, 12:53 PMHey BDCT doesn’t require the use of webhooksah! My apologies. I should rephrase my question. The use case that I am trying to implement is the CDCT wherein if a new version. of consumer test is published, it should invoke a verficiation from the provider
Mayank Chugh
03/02/2023, 12:57 PMlatest deployed when a new version of Provider wants to release
The provider should pull contract only from the pactUrl and ignore all other opts if it receives the webhook (when new consumer wants to go in with changed contract)
The node example nicely shows this use case.
Thanks đź’™Yousaf Nabi (pactflow.io)
contract_requiring_verification_published is the recommended method so seems like you are on the right track 🙂Timothy Jones
03/02/2023, 1:49 PM