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

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

commit de939d6135e776db11883597c6099f0b8a766015
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Feb 8 14:26:41 2023 +0100

    CAMEL-18131 - camel-health - Do not register Producer Health Check until 
CAMEL-18992 will be completed - MQ
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../main/java/org/apache/camel/component/aws2/mq/MQ2Endpoint.java    | 5 +++--
 .../component/aws2/mq/MQ2ClientHealthCheckProfileCredsTest.java      | 2 ++
 .../camel/component/aws2/mq/MQ2ClientHealthCheckStaticCredsTest.java | 2 ++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-aws/camel-aws2-mq/src/main/java/org/apache/camel/component/aws2/mq/MQ2Endpoint.java
 
b/components/camel-aws/camel-aws2-mq/src/main/java/org/apache/camel/component/aws2/mq/MQ2Endpoint.java
index b5750627a9c..770e8f33a0c 100644
--- 
a/components/camel-aws/camel-aws2-mq/src/main/java/org/apache/camel/component/aws2/mq/MQ2Endpoint.java
+++ 
b/components/camel-aws/camel-aws2-mq/src/main/java/org/apache/camel/component/aws2/mq/MQ2Endpoint.java
@@ -72,8 +72,9 @@ public class MQ2Endpoint extends ScheduledPollEndpoint {
                 ComponentsHealthCheckRepository.REPOSITORY_ID, 
ComponentsHealthCheckRepository.class);
 
         if (healthCheckRepository != null) {
-            clientHealthCheck = new MQ2ClientHealthCheck(this, getId());
-            healthCheckRepository.addHealthCheck(clientHealthCheck);
+            // Do not register the health check until we resolve CAMEL-18992
+            // clientHealthCheck = new MQ2ClientHealthCheck(this, getId());
+            // healthCheckRepository.addHealthCheck(clientHealthCheck);
         }
     }
 
diff --git 
a/components/camel-aws/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQ2ClientHealthCheckProfileCredsTest.java
 
b/components/camel-aws/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQ2ClientHealthCheckProfileCredsTest.java
index 61086510078..6b275a2d6df 100644
--- 
a/components/camel-aws/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQ2ClientHealthCheckProfileCredsTest.java
+++ 
b/components/camel-aws/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQ2ClientHealthCheckProfileCredsTest.java
@@ -28,6 +28,7 @@ import org.apache.camel.health.HealthCheckRegistry;
 import org.apache.camel.impl.health.DefaultHealthCheckRegistry;
 import org.apache.camel.test.junit5.CamelTestSupport;
 import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -72,6 +73,7 @@ public class MQ2ClientHealthCheckProfileCredsTest extends 
CamelTestSupport {
     }
 
     @Test
+    @Disabled("Do not register the Producer Health Check until we solve 
CAMEL-18992")
     public void testConnectivity() {
 
         Collection<HealthCheck.Result> res = 
HealthCheckHelper.invokeLiveness(context);
diff --git 
a/components/camel-aws/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQ2ClientHealthCheckStaticCredsTest.java
 
b/components/camel-aws/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQ2ClientHealthCheckStaticCredsTest.java
index 0b0deb62f03..a09450deae7 100644
--- 
a/components/camel-aws/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQ2ClientHealthCheckStaticCredsTest.java
+++ 
b/components/camel-aws/camel-aws2-mq/src/test/java/org/apache/camel/component/aws2/mq/MQ2ClientHealthCheckStaticCredsTest.java
@@ -28,6 +28,7 @@ import org.apache.camel.health.HealthCheckRegistry;
 import org.apache.camel.impl.health.DefaultHealthCheckRegistry;
 import org.apache.camel.test.junit5.CamelTestSupport;
 import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -72,6 +73,7 @@ public class MQ2ClientHealthCheckStaticCredsTest extends 
CamelTestSupport {
     }
 
     @Test
+    @Disabled("Do not register the Producer Health Check until we solve 
CAMEL-18992")
     public void testConnectivity() {
 
         Collection<HealthCheck.Result> res = 
HealthCheckHelper.invokeLiveness(context);

Reply via email to