0

We have a service A, which has AWS MSK event listener. It then processes the event and adds data into db. We have get API on the service, which provides the data referring to the db in step above.

We have implemented integration tests with embedded kafka and SpringBoot test. However for QA automation testing, we are figuring out how to write automated tests for invoking kafka event for end to end test. Any ideas or pointers would be helpful.

5
  • EmbeddedKafka or Testcontainers are commonly used. What's wrong with that? Also, Kafka Connect is recommended for working with databases Commented Jun 28, 2023 at 12:58
  • EmbeddedKafka is the way to test locally for developers. That we are already doing. What we want is automation for QE which would test with real systems. Commented Jun 29, 2023 at 4:36
  • Testcontainers, or vagrant, then. Otherwise, introduce terraform/ansible and spin up a test environment in MSK, assuming you're willing to pay for every test that gets ran. Commented Jun 29, 2023 at 15:13
  • I am not able to find any example of testcontainer with real kafka. Mostly use embedded kafka which is not going to serve my purpose. Commented Jul 4, 2023 at 6:12
  • I don't understand what you mean by "real". The container runs just a real broker as anything else. You don't link the test container to an external system Commented Jul 5, 2023 at 1:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.