Reputation: 57
I am trying to run a connectivity test using Karate. The microservice under test checks the status from the health end point and acts if the status returned is not as expected. I have the microservice running in my local:8080. The health end point also runs in local:8080/health. I need to mock the health end point response to return a DOWN status. But since the actual micro service is running in 8080, I am not able to run the mock in 8080. Has anybody faced the same situation?
Upvotes: 1
Views: 1113
Reputation: 58098
You can easily change the port used by the mocks, please refer the docs !
https://github.com/intuit/karate/tree/master/karate-netty
EDIT: from the comments, if you can configure the calling app to use a proxy server, you can use Karate. See option (5a) in the diagram below the picture here: https://github.com/intuit/karate/tree/master/karate-netty#consumer-provider-example
Upvotes: 1