Take a look if you prefer to read it in portuguese;
When a TCP server you own is hit, you have to send an information to a RESTful API and notify this using AMQP messages.
Now, you have three options to test this polyglot flow:
- Write no test at all;
- Write a component test for each one of these cases separately in the codebase itself, mock them all, handle new dependencies, figure out details and deal with debugging them when they fail; or
- Use enqueuer and have it all tested right out of the box.
To use enqueuer, you have to:
It is a microservice integration testing tool that supports a range of protocols (HTTP, AMQP, MQTT etc.) and provides the following capabilities:
- Initiates requests
- Mock depended services
- Assert against payload and message content
- CLI easily added to CI pipelines
Consider reading the instructions for further details