Skip to content

Commit

Permalink
update TestContainers versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrinot committed Apr 5, 2024
1 parent 07a0e18 commit 452807e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
import org.jetbrains.annotations.NotNull;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.KafkaContainer;
import org.testcontainers.containers.Network;
import org.testcontainers.containers.output.Slf4jLogConsumer;
import org.testcontainers.containers.wait.strategy.HttpWaitStrategy;
import org.testcontainers.containers.wait.strategy.Wait;
import org.testcontainers.junit.jupiter.Container;
Expand Down Expand Up @@ -57,7 +55,7 @@ public class AvroSchemaRegistryIT {
private final GenericContainer<?> questDBContainer = new GenericContainer<>("questdb/questdb:7.4.0")
.withNetwork(network)
.withExposedPorts(QuestDBUtils.QUESTDB_HTTP_PORT)
.withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("questdb")))
// .withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("questdb")))
.withEnv("QDB_CAIRO_COMMIT_LAG", "100")
.withEnv("JAVA_OPTS", "-Djava.locale.providers=JRE,SPI");

Expand All @@ -80,7 +78,7 @@ public class AvroSchemaRegistryIT {
.withExposedPorts(8083)
.withCopyFileToContainer(MountableFile.forHostPath(connectorJarResolver.getJarPath()), "/usr/share/java/kafka/questdb-connector.jar")
.withCopyFileToContainer(MountableFile.forHostPath(questdbJarResolver.getJarPath()), "/usr/share/java/kafka/questdb.jar")
.withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("connect")))
// .withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("connect")))
.dependsOn(kafkaContainer, questDBContainer)
.waitingFor(new HttpWaitStrategy()
.forPath("/connectors")
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<kafka.scala.version>2.13</kafka.scala.version>
<kafka.version>3.3.1</kafka.version>
<junit.version>5.9.0</junit.version>
<testcontainers.version>1.19.1</testcontainers.version>
<testcontainers.version>1.19.7</testcontainers.version>
<slf4j.version>1.7.36</slf4j.version>
<awaitability.version>4.1.0</awaitability.version>
<okhttp.version>4.10.0</okhttp.version>
Expand Down

0 comments on commit 452807e

Please sign in to comment.