This is an automated email from the ASF dual-hosted git repository.
tilman pushed a commit to branch branch_2x
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/branch_2x by this push:
new 2da03c0a3 TIKA-4239: adjust test container type and update container
version
2da03c0a3 is described below
commit 2da03c0a3a2a246d733f5ea1730d56116f635952
Author: Tilman Hausherr <[email protected]>
AuthorDate: Wed Jan 15 02:23:27 2025 +0100
TIKA-4239: adjust test container type and update container version
---
.../java/org/apache/tika/pipes/kafka/tests/TikaPipesKafkaTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/tika-integration-tests/tika-pipes-kafka-integration-tests/src/test/java/org/apache/tika/pipes/kafka/tests/TikaPipesKafkaTest.java
b/tika-integration-tests/tika-pipes-kafka-integration-tests/src/test/java/org/apache/tika/pipes/kafka/tests/TikaPipesKafkaTest.java
index 9c4c46741..4b6d91ad3 100644
---
a/tika-integration-tests/tika-pipes-kafka-integration-tests/src/test/java/org/apache/tika/pipes/kafka/tests/TikaPipesKafkaTest.java
+++
b/tika-integration-tests/tika-pipes-kafka-integration-tests/src/test/java/org/apache/tika/pipes/kafka/tests/TikaPipesKafkaTest.java
@@ -57,7 +57,7 @@ import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.junit.jupiter.Testcontainers;
-import org.testcontainers.kafka.KafkaContainer;
+import org.testcontainers.kafka.ConfluentKafkaContainer;
import org.testcontainers.shaded.org.apache.commons.io.FileUtils;
import org.testcontainers.utility.DockerImageName;
@@ -93,7 +93,8 @@ public class TikaPipesKafkaTest {
private final File testFileFolder = new File("target", "test-files");
private final Set<String> waitingFor = new HashSet<>();
- KafkaContainer kafka = new
KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:6.2.1").asCompatibleSubstituteFor("apache/kafka"));
+ //
https://java.testcontainers.org/modules/kafka/#using-orgtestcontainerskafkaconfluentkafkacontainer
+ ConfluentKafkaContainer kafka = new
ConfluentKafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.4.0"));
private void createTestFiles() throws Exception {
if (testFileFolder.mkdirs()) {