Skip to content

Commit

Permalink
(kafka-standalone): add interceptor class to the exposed configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
osoykan committed May 10, 2024
1 parent e213345 commit 6626ced
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class TestSystemConfig : AbstractProjectConfig() {
listOf(
"kafka.bootstrapServers=${it.bootstrapServers}",
"kafka.isSecure=false",
"kafka.interceptorClasses=com.trendyol.stove.testing.e2e.standalone.kafka.intercepting.StoveKafkaBridge"
"kafka.interceptorClasses=${it.interceptorClass}"
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ package com.trendyol.stove.testing.e2e.standalone.kafka
import com.trendyol.stove.testing.e2e.system.abstractions.ExposedConfiguration

data class KafkaExposedConfiguration(
val bootstrapServers: String
val bootstrapServers: String,
val interceptorClass: String
) : ExposedConfiguration
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ class KafkaSystem(
override suspend fun run() {
exposedConfiguration = state.capture {
context.container.start()
KafkaExposedConfiguration(context.container.bootstrapServers)
KafkaExposedConfiguration(
context.container.bootstrapServers,
StoveKafkaBridge::class.java.name
)
}
adminClient = createAdminClient(exposedConfiguration)
kafkaPublisher = createPublisher(exposedConfiguration)
Expand Down

0 comments on commit 6626ced

Please sign in to comment.