Defining Kafka Tests as Text Files
When defining a Kafka trigger, you are required to define a kafka
object containing the request Tracetest will send to your system. You also define: brokerUrls
, topic
, headers
, messageKey
, and messageValue
.
trigger:
type: kafka
kafka:
brokerUrls:
- ${var:POKESHOP_KAFKA_BROKER}
topic: pokemon
headers: []
messageKey: snorlax-key
messageValue: "{\"id\":144}"