kafka-view icon indicating copy to clipboard operation
kafka-view copied to clipboard

Add integration tests

Open fede1024 opened this issue 8 years ago • 0 comments

It would be useful to have integration tests.x

Some possible test scenarios are:

  • Produce some data into Kafka, wait for metrics to refresh, then check rate, topic size.
  • Create a topic with a specific layout (partitions/replicas), and verify that the topology reported by the API matches the expected one.
  • Verify that the topic tailer returns the messages as they are being produced.
  • Create a consumer group, commit some offsets, and verify that the API reports the correct values.
  • Delete a topic, check that the topic disappears from the API and from the cache.

This could be easily achieved by running kafka-view in a dockerized environment using docker-compose, similarly to what is done for the integration tests of rdkafka.

fede1024 avatar Sep 20 '17 21:09 fede1024