Skip to content

Commit

Permalink
sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
fqaiser94 committed Apr 9, 2024
1 parent c5b3d2d commit 21ef43f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions kafka-connect-runtime/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ dependencies {
testImplementation libs.testcontainers
testImplementation libs.testcontainers.kafka
testImplementation libs.http.client
testImplementation 'ch.qos.logback:logback-classic:1.1.2'
}

processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,17 @@
import org.apache.iceberg.relocated.com.google.common.collect.Lists;
import org.apache.iceberg.relocated.com.google.common.collect.Maps;
import org.awaitility.Awaitility;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.output.Slf4jLogConsumer;
import org.testcontainers.containers.wait.strategy.HttpWaitStrategy;
import org.testcontainers.utility.DockerImageName;

public class KafkaConnectContainer extends GenericContainer<KafkaConnectContainer> {

private static final Logger LOG = LoggerFactory.getLogger(KafkaConnectContainer.class);

private static final HttpClient HTTP = HttpClients.createDefault();
private static final int PORT = 8083;

Expand Down Expand Up @@ -90,6 +95,7 @@ public KafkaConnectContainer(DockerImageName dockerImageName) {
.forPath("/connectors")
.forPort(PORT)
.withStartupTimeout(Duration.ofSeconds(30)));
this.withLogConsumer(new Slf4jLogConsumer(LOG));
}

public void startConnector(Config config) {
Expand Down

0 comments on commit 21ef43f

Please sign in to comment.