Join Slack
Powered by
Hi :slightly_smiling_face: When using Pact Juni5 C...
# pact-jvm
i
Itzhak Eretz Kdosha
02/06/2023, 12:16 PM
Hi 🙂 When using Pact Juni5 Consumer, is it possible to configure an external mock-server instead of the "in process" one? Thanks
u
uglyog
02/06/2023, 10:09 PM
Why would you want to do that, and how would that work?
i
Itzhak Eretz Kdosha
02/07/2023, 7:53 AM
Hi
@uglyog
I want the actual consumer tests to match what my app will do so I plan on running my app in a separate machine and triggering the calls to the mockserver indirectly. This way I make sure I actually require the pacts that were described. I do not have the option to run/mock my own app inside the process (like Spring MockMVC or similar solutions) I know that there are mock-server standalone like:
https://docs.pact.io/implementation_guides/rust/pact_mock_server_cli
https://hub.docker.com/r/pactfoundation/pact-cli
https://github.com/pact-foundation/pact-jvm/tree/master/pact-jvm-server
That seems to be able to replace the "in process" one Am I missing something?
Open in Slack
Previous
Next