samedi 15 août 2020

Mock responses for calls inside external service

Assume we have a microservice (A), inside it there is an endpoint (E). Inside this endpoint, there is another call to separate microservice (B) is being made.

Is there a way to mock response from B?

The idea is to have a testing framework, let's say in JS (for instance mocha) and mock responses from endpoints inside 3 party microservice.

Aucun commentaire:

Enregistrer un commentaire