Send headers while producing to a Kafka topic
See original GitHub issuehttps://github.com/authorjapps/hello-kafka-stream-testing/issues/1
Background
From Slack: Question from: Kushagra @authorjapps is it possible to send a message to a Kafka topic with a particular header? I know we can do that in http. Please advise!
AC1:
As a developer or SDET I want to produce a record with header(s) to a desired Kafka topic So that I verify the business flow related to the headers. e.g.
"records":[
{
"key": "${RANDOM.NUMBER}",
"value": "Hello World",
"headers": {
"key1" : "value1",
"key2" : "value2",
}
...
}
AC2:
As a developer or Test Engineer I want a help page or a Wiki to learn the usage of the producing and consuming of a Kafka record with headers So that I can easily implement this into the test automation in my project. Wiki todo(Ask for edit permission) : https://github.com/authorjapps/zerocode/wiki/Kafka-records-with-headers
SDET: Software Developer Engineer in Test
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top GitHub Comments
@authorjapps apologies for the late response and sorry for not getting to AC2 before 21st. I will look into the AC2 and will reach out once I’m on it. And yes it is important! 😃 Many thanks!
Hello @kt09 , Just checking… did you get chance to complete the AC2?