We are working on a micro-service project, where the services communicate using DRF. Some of the micro-services are "chained", that is they receive some request, do some logic, such as store some things to a db, and then they themselves call other services running on the same or different domains.
I want to cover the components with unit tests, however, when I use the APIRequestFactory to test my views, and when such views send requests to other microservices, I run into the problem that those "other" servers are not accessible.
Is there a way to mock up those "other services", so that I can check the logic in those "primary" microservices?
Aucun commentaire:
Enregistrer un commentaire