You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/07/30 08:54:45 UTC

[camel] branch main updated: (chores) camel-test-infra-kafka: zookeeper container should be the same one used by Kafka (#10913)

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new aa209a3a950 (chores) camel-test-infra-kafka: zookeeper container should be the same one used by Kafka (#10913)
aa209a3a950 is described below

commit aa209a3a9501f3d396f9d2887322b0f48d726d5d
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Sun Jul 30 10:54:38 2023 +0200

    (chores) camel-test-infra-kafka: zookeeper container should be the same one used by Kafka (#10913)
    
    Signed-off-by: Otavio R. Piske <an...@gmail.com>
---
 .../org/apache/camel/test/infra/kafka/services/StrimziContainer.java   | 2 +-
 .../org/apache/camel/test/infra/kafka/services/ZookeeperContainer.java | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/test-infra/camel-test-infra-kafka/src/test/java/org/apache/camel/test/infra/kafka/services/StrimziContainer.java b/test-infra/camel-test-infra-kafka/src/test/java/org/apache/camel/test/infra/kafka/services/StrimziContainer.java
index 3ad74029b5c..26a4639f66b 100644
--- a/test-infra/camel-test-infra-kafka/src/test/java/org/apache/camel/test/infra/kafka/services/StrimziContainer.java
+++ b/test-infra/camel-test-infra-kafka/src/test/java/org/apache/camel/test/infra/kafka/services/StrimziContainer.java
@@ -24,7 +24,7 @@ import org.testcontainers.containers.wait.strategy.Wait;
 
 public class StrimziContainer extends GenericContainer<StrimziContainer> {
     public static final String DEFAULT_STRIMZI_CONTAINER = "quay.io/strimzi/kafka:latest-kafka-3.5.1";
-    private static final String STRIMZI_CONTAINER
+    static final String STRIMZI_CONTAINER
             = System.getProperty("itest.strimzi.container.image", DEFAULT_STRIMZI_CONTAINER);
     private static final int KAFKA_PORT = 9092;
 
diff --git a/test-infra/camel-test-infra-kafka/src/test/java/org/apache/camel/test/infra/kafka/services/ZookeeperContainer.java b/test-infra/camel-test-infra-kafka/src/test/java/org/apache/camel/test/infra/kafka/services/ZookeeperContainer.java
index e2597480fae..d2af19a7380 100644
--- a/test-infra/camel-test-infra-kafka/src/test/java/org/apache/camel/test/infra/kafka/services/ZookeeperContainer.java
+++ b/test-infra/camel-test-infra-kafka/src/test/java/org/apache/camel/test/infra/kafka/services/ZookeeperContainer.java
@@ -23,8 +23,7 @@ import org.testcontainers.containers.Network;
 import org.testcontainers.containers.wait.strategy.Wait;
 
 public class ZookeeperContainer extends GenericContainer<ZookeeperContainer> {
-    private static final String ZOOKEEPER_CONTAINER = System.getProperty("itest.zookeeper.container.image",
-            StrimziContainer.DEFAULT_STRIMZI_CONTAINER);
+    private static final String ZOOKEEPER_CONTAINER = StrimziContainer.STRIMZI_CONTAINER;
     private static final int ZOOKEEPER_PORT = 2181;
 
     public ZookeeperContainer(Network network, String name) {