0

We use the Kafka Rest Proxy for some of our automated testing making calls to it from Postman. A typical flow is is

  1. post event on input topic
  2. consume even on output topic in postman
  3. verify attributes of the output event

The problem I am seeing is bleed over between test cases with events remaining on the output topic from previous test cases that may have failed before consuming all messages on the topic. The solution I have, and it doesn't seem to work every time, is to read all existing messages on the topic in the setup for test case N.

Is there a full proof and idiomatic way to delete, or otherwise mark all previous messages as read, using the rest proxy?

gsrunion
  • 379
  • 5
  • 14

0 Answers0