I am working on a Service API ( Spring, Java ) which calls an external service to fetch some data.
We have a Karate test for some of the endpoints that runs on buildkite ( CI/CD process ) in an isolated environment buildkite-my-service:8080
.
From this buildkite-my-service:8080
, I cannot connect to external Service to validate my Karate tests. Although Karate tests run fine on my localhost:8080
as I can connect to this external Service.
What would be the best way/ library/ framework to have an Integration test in such a scenario?