Hi team, I have a use-case wherein 1 out of 3 microservices is going to act as a consumer and a provider both. What are the best practices in writing the contract tests for such a use-case?
m
Matt (pactflow.io / pact-js / pact-go)
06/02/2023, 12:16 AM
It shouldn’t really change things. The best practice for consumers are the same, and the best practices for providers are also the same. It’s just that some of your apps will be both.
Is there something you’re worried about?
h
Harry
06/02/2023, 1:22 PM
I am just thinking if it is advised to write an end-to-end test for all the three microservices in one file, since the middle-one is acting as a consumer and a provider both? Or the should the interactions be handled separately?