HI All, I am trying to setup bi-directional testin...
# pactflow
k
HI All, I am trying to setup bi-directional testing using my existing pact-server without using pactflow. is it feasible? This is for an in-house experiment. I am publishing different fragments from the producer and consumers also producing their subset to the pact broker. And I need a way of identifying all the consumer published pacts from provider., which is what I believe PACTflow with bi-directional contract testing is doing.. Sorry for any incorrect understanding..
m
The open source pact broker doesn't support the bidirectional flow. Can you elaborate a bit more in case I'm misunderstanding?
k
we do have one pact broker internally, how to confirm if it supports or not? is there a version or details I can check on my server, if it supports bi-directional? We don’t have any plan of using pactflow saas service for bi-di CT.
y
The OSS broker doesn't support it as a feature, as Matt mentioned You can use the open source tool https://github.com/pactflow/swagger-mock-validator to validate your specs against your pact files, and publish the verification results manually back to your broker, similar to this example https://github.com/pactflow/pactflow-jsonschema-example#provider-test But for support as a first class feature, it is unlikely to make it into the OS broker.
k
Thank you Yousuf and Matt.
👍 1
r
@Krishna Mohan Elluru Another alternative for implementing the schema based provider verification yourself would be to leverage the new plugin interface. https://github.com/pact-foundation/pact-plugins/blob/main/docs/writing-plugin-guide.md#plugin-interface
🎉 1
m
Yes, that's an option too!