From 16024ab96ea28e4b2937b36e8e58923695d50451 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 3 Feb 2024 21:38:24 +0100 Subject: [PATCH] WIP --- .../chat/backend/AbstractHandoverIT.java | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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(); } -- 2.20.1