Hi Team, We have created a standalone service for...
# pact-jvm
g
Hi Team, We have created a standalone service for contract testing. This helps the consumer to verify the contracts against different providers. Now I also wanted to verify the provider when a new code is deployed by Provider service. What is the best way to verify the contracts when provider deploys? I wanted to keep the code changes minimal at provider side or no code change at all. We have multiple providers so implementing at every provider side is too costly process. Can someone help on this? Thanks in Advance !!
b
What do you mean when you say ‘this helps the consumer to verify the contract’? In consumer-driven contract testing, consumers generate a contract, they don’t verify it. One potential downside of CDCT is indeed that it can be difficult to get providers on board. Have you looked at bidirectional contract testing as a potential solution to this problem? https://pactflow.io/bi-directional-contract-testing/
g
Hi @Bas Dijkstra, What I meant was, they create the contracts and Broker helps us to verify it. The Service which we created help the consumer to check the contracts. I need to use PactFlow to do bidirectional testing. But I am trying to achieve this through PACT Broker. Is that possible?
b
No, that’s a Pactflow only feature.
g
okay @Bas Dijkstra Thank you !! 🙂
m
We have created a standalone service for contract testing.
can you please elaborate on this - what is it, exactly?
g
Hi @Matt (pactflow.io / pact-js / pact-go), This is nothing but the service which has information about all the providers, so this will run the verification command, We took the verification functionality out from the Provider and running it as a standalone one.
It would be really helpful if you the Pact broker allows provider side verification as well. We will be ready to buy a licensed version of it and use it in our own Server.
m
It would be really helpful if you the Pact broker allows provider side verification as well. We will be ready to buy a licensed version of it and use it in our own Server.
I’m confused by this.
What I meant was, they create the contracts and Broker helps us to verify it. The Service which we created help the consumer to check the contracts.
If I understand correctly, are you using this service to be trigger if a consumer contract is published, which then runs the provider verifier (CLI or docker) against a live system? And further, you’re requesting that PactFlow (or otherwise) build this feature as a commercial capability you’re willing to pay for?
I need to use PactFlow to do bidirectional testing. But I am trying to achieve this through PACT Broker. Is that possible?
as Bas said, no this is a commercial feature (available on SaaS and on-prem)
We took the verification functionality out from the Provider and running it as a standalone one.
what problem are you trying to solve?