Open gaetancollaud opened 3 years ago
If you are using the confluent avro serde, you can set the schema registry url to mock://
to use a built in mock schema registry which just runs in memory and works well if you use auto schema registration.
I'm aware of this mock feature, but for me, the goal of testcontainer is to run your tests against a real system, not a mock. Why not mocking kafka altogether then?
I'd love to use one for Protobufs - right now I'll need to mock all that code and just assume the serializers work in prod or write my own serialization so the tests are the same in both environments. I'm trying to think of a nicer way - but likely may need to replicate the functionality in the avro stream serde.
Hi @eddumelendez. Will you accept contribution for this task or you think it’s not needed? Asking because of tag “somedaymaybe”
Hi, for further reference you can check this snippet to configure the confluent stack.
@PPrydorozhnyi, I don't think this is the best place to host the module. I hope to have news regarding to this in the upcoming weeks.
I use the Kafka test container which work really well. The only issue that I have is that I use protobuf/avro encoding for my messages. This means I need to run the schema registry container.
Would it be possible to provide the schema registry out of the box and document it in the docs ? I'm willing to create a PR but I prefer to ask first.
See below the definition that I use in my unit test: