This project shows how to setup API testing with postman (newman) and docker compose
.
We will test very simple microservice - OrderService. It is responsible for order processing. The MongoDB is used as storage and RabbitMQ allows to complete an order once it is paid (presumably this notification event will be said by some other microservice).
See: https://github.com/postmanlabs/newman
Collection that is used as test run located at testing-with-newman.postman_collection.json.
docker compose -f docker-compose.postman.yml up main-flow
docker compose -f docker-compose.postman.yml up cancel-flow