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;
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();
}