metalbear-co / mirrord

Connect your local process and your cloud environment, and run local code in cloud conditions.
https://mirrord.dev
MIT License
3.75k stars 101 forks source link

E2E tests for SQS splitting #2554

Closed t4lz closed 1 week ago

t4lz commented 3 months ago

Part of #2670

This PR adds 1 E2E test for a basic SQS splitting case. There are still things missing, and some things that are potential issue either in the mirrord-SQS-operator or in the test, but I would like to merge the test and solve more issues later, so that we already have basic protection against regressions.

For the test there should be a deployed localstack instance. A test fixture patches the installed operator to use that localstack instead of actual AWS SQS. The test deploys a service that consumes 2 queues (one normal, one FIFO), starts two clients that split messages with different filters, sends messages with attributes that make some of them reach each of the two clients and the deployed application. The test then verifies each of those 3 applications received the messages it was supposed to.

Unresolved issues:

https://github.com/metalbear-co/test-images/pull/21 has to be merged first, then the image can be changed to the published test image.