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

Resolve property placeholders in EmbeddedKafka topics #555

Closed
zacholauson opened this issue Feb 3, 2018 · 0 comments
Closed

Resolve property placeholders in EmbeddedKafka topics #555

zacholauson opened this issue Feb 3, 2018 · 0 comments

Comments

@zacholauson
Copy link
Contributor

zacholauson commented Feb 3, 2018

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}" })
zacholauson added a commit to zacholauson/spring-kafka that referenced this issue Feb 3, 2018
… topics

Fixes spring-projects#555

* Update EmbeddedKafkaContextCustomizer to resolve property placeholders
* Update KafkaStreamsTests to use topic from property
* Add property resolving details to EmbeddedKafka javadoc and testing.adoc
zacholauson added a commit to zacholauson/spring-kafka that referenced this issue Feb 3, 2018
… topics

Fixes spring-projects#555

* Update EmbeddedKafkaContextCustomizer to resolve property placeholders
* Update KafkaStreamsTests to use topic from property
* Add property resolving details to EmbeddedKafka javadoc and testing.adoc
zacholauson added a commit to zacholauson/spring-kafka that referenced this issue Feb 3, 2018
… topics

Fixes spring-projects#555

* Update EmbeddedKafkaContextCustomizer to resolve property placeholders
* Update KafkaStreamsTests to use topic from property
* Add property resolving details to EmbeddedKafka javadoc and testing.adoc
zacholauson added a commit to zacholauson/spring-kafka that referenced this issue Feb 3, 2018
… topics

Fixes spring-projects#555

* Update EmbeddedKafkaContextCustomizer to resolve property placeholders
* Update KafkaStreamsTests to use topic from property
* Add property resolving details to EmbeddedKafka javadoc and testing.adoc
zacholauson added a commit to zacholauson/spring-kafka that referenced this issue Feb 3, 2018
… topics

Fixes spring-projects#555

* Update EmbeddedKafkaContextCustomizer to resolve property placeholders
* Update KafkaStreamsTests to use topic from property
* Add property resolving details to EmbeddedKafka javadoc and testing.adoc
denis554 added a commit to denis554/spring-kafka that referenced this issue Mar 27, 2019
Fixes spring-projects/spring-kafka#555

* Update `EmbeddedKafkaContextCustomizer` to resolve property placeholders
* Update `KafkaStreamsTests` to use topic from property
* Add property resolving details to `EmbeddedKafka` javadoc and testing.adoc

* Simple polishing
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

Successfully merging a pull request may close this issue.

1 participant