Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic topic creation in Kafka #751

Open
jamesforwardnwboxed opened this issue Nov 1, 2024 · 0 comments
Open

Automatic topic creation in Kafka #751

jamesforwardnwboxed opened this issue Nov 1, 2024 · 0 comments

Comments

@jamesforwardnwboxed
Copy link

Feature description

Hi,

I'm trying to use micronaut test resources, and have managed to spin up a Kafka Container and have it connect into my application. However, my logs are spamming errors that the topics I want are created. With a normal TestContainers approach, I would just create beans or something that would take a list of topic names and create them.

There is almost no documentation here about configuration, so if this feature is already available it isn't very clear: https://micronaut-projects.github.io/micronaut-test-resources/latest/guide/#modules-kafka

What would be good is if it were possible to configure the Test Resources to configure the Kafka broker, ie:

test-resources:
  containers:
    kafka:
      topics:
        - my-topic-one
        - my-topic-two
      partitions: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant