Open msillence opened 1 year ago
@msillence do you build a different topology for the test itself ? In quickstart https://github.com/quarkusio/quarkus-quickstarts/blob/415210003ec505d53b3c6f5c31bc1e075eddfa53/kafka-streams-quickstart/aggregator/src/test/java/org/acme/kafka/streams/aggregator/streams/TopologyProducerTest.java#L52-L55 the one produced by https://github.com/quarkusio/quarkus-quickstarts/blob/415210003ec505d53b3c6f5c31bc1e075eddfa53/kafka-streams-quickstart/aggregator/src/main/java/org/acme/kafka/streams/aggregator/streams/TopologyProducer.java#L33 is injected.
Maybe there could be TopologyTestDriverResource
QuarkusTestResource that would create a TopologyTestDriver bean.
Maybe there could be TopologyTestDriverResource QuarkusTestResource that would create a TopologyTestDriver bean.
Sounds reasonable to me
Description
In my application.properties I have:
in my application-test.properties I have:
new TopologyTestDriver(topology)
- does not pick these up instead I need to manually create the properties and pass them in:quarkus.kafka-streams.schema-registry-url quarkus.kafka-streams.default.key.serde quarkus.kafka-streams.default.value.serde