Commit 490d55d 1 parent 7635edb commit 490d55d Copy full SHA for 490d55d
File tree 2 files changed +5
-4
lines changed
floodplain-integration/src/test/kotlin/io.floodplain.integration
floodplain-test/src/main/kotlin/io/floodplain/test
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 18
18
*/
19
19
package io.floodplain.integration
20
20
21
+ import io.floodplain.test.InstantiatedRedPandaContainer
21
22
import org.apache.kafka.clients.admin.AdminClient
22
23
import org.apache.kafka.clients.admin.ListTopicsOptions
23
24
import org.apache.kafka.clients.admin.NewTopic
@@ -35,7 +36,7 @@ class TestTopicCreation {
35
36
// .withEnv(env)
36
37
37
38
// Infra for testing Kafka interaction
38
- // private val panda = InstantiatedRedPandaContainer()
39
+ private val panda = InstantiatedRedPandaContainer ()
39
40
// val kafkaContainer = KafkaContainer("5.5.3").withEmbeddedZookeeper().withExposedPorts(9092,9093)
40
41
41
42
// Not functional yet
@@ -45,8 +46,8 @@ class TestTopicCreation {
45
46
// kafkaContainer.start()
46
47
// logger.info("Bootsx§trap: ${kafkaContainer.bootstrapServers}")
47
48
val config: MutableMap <String , Any > = HashMap ()
48
- // val exposedPort = panda.exposedPort
49
- val host = " localhost:9093 "
49
+ val exposedPort = panda.exposedPort
50
+ val host = " localhost:${exposedPort} "
50
51
logger.info(" Exposed host: $host " )
51
52
config[" bootstrap.servers" ] = host // "localhost:51347"
52
53
config[" client.id" ] = UUID .randomUUID().toString()
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ class RedpandaContainer : GenericContainer<RedpandaContainer?>("vectorized/redpa
113
113
command + = " /usr/bin/rpk redpanda start --check=false --node-id 0 "
114
114
command + = " --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 "
115
115
command + = " --advertise-kafka-addr PLAINTEXT://broker:29092,OUTSIDE://$host :" + getMappedPort(
116
- 29092
116
+ 9092
117
117
)
118
118
logger.info(" command: $command " )
119
119
logger.info(" mapped port: $host :${getMappedPort(9092 )} " )
You can’t perform that action at this time.
0 commit comments