manub / scalatest-embedded-kafka

A library that provides an in-memory Kafka instance to run your tests against.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Headers Support

baitmbarek opened this issue · comments

Hello,
Seems like Headers are not saved in the Kafka Server (which is a new feature of Kafka 0.11). Would it be possible to take a look ?
Edit : I guess the EmbeddedKafka.publishToKafka method should take an Map-like extra parameter for record headers and the "message" value in consumer method should handle the record headers in order to provide it in return.
Thanks ;)

Instead of passing more and more parameters, consider exposing a method with kafka producer record as single parameter.