Skip to content

Resolve property placeholders in EmbeddedKafka topics #555

@zacholauson

Description

@zacholauson

I'm working on a project where we are configuring all of our topics in property files, so our tests have to know about the contents of the property files to configure the correct topics. The alternative to this is to use @TestPropertySource to override our topic properties, but we have a lot of topics, so it's not that convenient.

Ideally the topic attribute of @EmbeddedKafka would be able to accept and resolve property placeholders.

Example:

@EmbeddedKafka(topics = { "${kafka.topic.one}", "${kafka.topic.two}" })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions