From: Kai Moritz Date: Sat, 3 Feb 2024 20:38:24 +0000 (+0100) Subject: WIP X-Git-Tag: rebase--2024-02-26--19-46~37 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=16024ab96ea28e4b2937b36e8e58923695d50451;p=demos%2Fkafka%2Fchat WIP --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java b/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java index c30dd62d..945b1c56 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java +++ b/src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java @@ -1,6 +1,8 @@ package de.juplo.kafka.chat.backend; +import org.junit.jupiter.api.BeforeAll; import org.testcontainers.containers.GenericContainer; +import org.testcontainers.containers.KafkaContainer; import org.testcontainers.junit.jupiter.Container; import org.testcontainers.junit.jupiter.Testcontainers; import org.testcontainers.utility.DockerImageName; @@ -10,9 +12,20 @@ import org.testcontainers.utility.DockerImageName; public abstract class AbstractHandoverIT { @Container - GenericContainer backend1 = new GenericContainer(DockerImageName.parse()) + KafkaContainer kafka = new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.4.0")).withKraft(); + + @Container + GenericContainer backend1 = new GenericContainer(DockerImageName.parse("juplo/chat-backend:0.0.1-SNAPSHOT")); + @Container + GenericContainer backend2 = new GenericContainer(DockerImageName.parse("juplo/chat-backend:0.0.1-SNAPSHOT")); @Container - KafkaContainer kafka = new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.4.0")) - .withKraft(); + GenericContainer backend3 = new GenericContainer(DockerImageName.parse("juplo/chat-backend:0.0.1-SNAPSHOT")); + + + @BeforeAll + void startInstances() + { + + } var bootstrapServers = kafka.getBootstrapServers(); }