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

zhfeng pushed a commit to branch 3.15.x
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/3.15.x by this push:
     new 57463d8523 Update to support override artemis devservices image name 
(#6767)
57463d8523 is described below

commit 57463d85236a6df51dfd562e49e2ef409c31f1bc
Author: Zheng Feng <zh.f...@gmail.com>
AuthorDate: Tue Nov 12 09:45:04 2024 +0800

    Update to support override artemis devservices image name (#6767)
---
 .../quarkus/test/support/activemq/ActiveMQTestResource.java   | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git 
a/integration-tests-support/activemq/src/main/java/org/apache/camel/quarkus/test/support/activemq/ActiveMQTestResource.java
 
b/integration-tests-support/activemq/src/main/java/org/apache/camel/quarkus/test/support/activemq/ActiveMQTestResource.java
index bbeea45043..36e8876653 100644
--- 
a/integration-tests-support/activemq/src/main/java/org/apache/camel/quarkus/test/support/activemq/ActiveMQTestResource.java
+++ 
b/integration-tests-support/activemq/src/main/java/org/apache/camel/quarkus/test/support/activemq/ActiveMQTestResource.java
@@ -21,7 +21,10 @@ import java.util.LinkedHashMap;
 import java.util.Map;
 
 import com.github.dockerjava.api.model.Ulimit;
+import io.quarkus.artemis.core.runtime.ArtemisBuildTimeConfig;
+import io.quarkus.artemis.core.runtime.ArtemisBuildTimeConfigs;
 import io.quarkus.artemis.core.runtime.ArtemisDevServicesBuildTimeConfig;
+import io.quarkus.artemis.core.runtime.ArtemisUtil;
 import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;
 import io.smallrye.config.SmallRyeConfigBuilder;
 import org.testcontainers.containers.GenericContainer;
@@ -106,9 +109,13 @@ public class ActiveMQTestResource implements 
QuarkusTestResourceLifecycleManager
     private String getArtemisImageName() {
         // Align to the same image used by quarkus-artemis
         return new SmallRyeConfigBuilder()
+                .addSystemSources()
+                .withValidateUnknown(false)
+                .withMapping(ArtemisBuildTimeConfig.class)
+                .withMapping(ArtemisBuildTimeConfigs.class)
                 .withMapping(ArtemisDevServicesBuildTimeConfig.class)
                 .build()
-                .getConfigMapping(ArtemisDevServicesBuildTimeConfig.class)
-                .getImageName();
+                
.getConfigMapping(ArtemisBuildTimeConfigs.class).configs().get(ArtemisUtil.DEFAULT_CONFIG_NAME)
+                .devservices().getImageName();
     }
 }

Reply via email to