WIP
authorKai Moritz <kai@juplo.de>
Sat, 3 Feb 2024 20:38:24 +0000 (21:38 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 23 Feb 2024 15:40:03 +0000 (16:40 +0100)
src/test/java/de/juplo/kafka/chat/backend/AbstractHandoverIT.java

index c30dd62..945b1c5 100644 (file)
@@ -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();
 }