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 bf903c4750356209ae15a98638149b259200570c
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Feb 8 14:10:51 2023 +0100

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

diff --git 
a/components/camel-aws/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Endpoint.java
 
b/components/camel-aws/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Endpoint.java
index 0915d298303..6b7b615437e 100644
--- 
a/components/camel-aws/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Endpoint.java
+++ 
b/components/camel-aws/camel-aws2-ecs/src/main/java/org/apache/camel/component/aws2/ecs/ECS2Endpoint.java
@@ -71,8 +71,9 @@ public class ECS2Endpoint extends ScheduledPollEndpoint {
                 ComponentsHealthCheckRepository.REPOSITORY_ID, 
ComponentsHealthCheckRepository.class);
 
         if (healthCheckRepository != null) {
-            clientHealthCheck = new ECS2ClientHealthCheck(this, getId());
-            healthCheckRepository.addHealthCheck(clientHealthCheck);
+            // Do not register the health check until we resolve CAMEL-18992
+            //clientHealthCheck = new ECS2ClientHealthCheck(this, getId());
+            //healthCheckRepository.addHealthCheck(clientHealthCheck);
         }
     }
 
diff --git 
a/components/camel-aws/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ClientHealthCheckProfileCredsTest.java
 
b/components/camel-aws/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ClientHealthCheckProfileCredsTest.java
index 7cdc6718f93..0d26320bc9c 100644
--- 
a/components/camel-aws/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ClientHealthCheckProfileCredsTest.java
+++ 
b/components/camel-aws/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ClientHealthCheckProfileCredsTest.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 ECS2ClientHealthCheckProfileCredsTest 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-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ClientHealthCheckStaticCredsTest.java
 
b/components/camel-aws/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ClientHealthCheckStaticCredsTest.java
index 9fc8e267b2f..33b98b5cf4b 100644
--- 
a/components/camel-aws/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ClientHealthCheckStaticCredsTest.java
+++ 
b/components/camel-aws/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ClientHealthCheckStaticCredsTest.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 ECS2ClientHealthCheckStaticCredsTest 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