Hello,
I have a general question regarding the implementation of Pact in our microservices (Java, Golang). Our requirement is to execute the provider test in the CI pipeline before the deployment step of the provider service, but we want to avoid making calls to the actual provider service deployed in some non-prod environment due to data issues. To address this, we plan to mock external API and DB calls. Now, my query is about where Pact will make the HTTP request.
If Pact initiates the request to the application started in the CI pipeline programmatically, it could pose challenges because our application has numerous dependencies such as DB connections, Kafka setup, etc. Starting the application with all these dependencies configured could be problematic, especially since these dependencies are irrelevant for running the Pact provider test.
In general, how do we effectively use Pact in such a situation?
Additionally, is there a method for Pact to directly call the service method instead of making HTTP calls? Any insights or guidance on this matter would be greatly appreciated.