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 1e68538094ccfd4465a4da81dfa6a2f849dcf157
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Feb 8 13:51:04 2023 +0100

    CAMEL-18131 - camel-health - Do not register Producer Health Check until 
CAMEL-18992 will be completed - EC2
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../java/org/apache/camel/component/aws2/ec2/AWS2EC2Endpoint.java   | 6 +++---
 .../component/aws2/ec2/AWS2EC2HealthCheckProfileCredsTest.java      | 2 ++
 .../camel/component/aws2/ec2/AWS2EC2HealthCheckStaticCredsTest.java | 2 ++
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-aws/camel-aws2-ec2/src/main/java/org/apache/camel/component/aws2/ec2/AWS2EC2Endpoint.java
 
b/components/camel-aws/camel-aws2-ec2/src/main/java/org/apache/camel/component/aws2/ec2/AWS2EC2Endpoint.java
index e2a5c5af7db..793a5a832ae 100644
--- 
a/components/camel-aws/camel-aws2-ec2/src/main/java/org/apache/camel/component/aws2/ec2/AWS2EC2Endpoint.java
+++ 
b/components/camel-aws/camel-aws2-ec2/src/main/java/org/apache/camel/component/aws2/ec2/AWS2EC2Endpoint.java
@@ -71,10 +71,10 @@ public class AWS2EC2Endpoint extends ScheduledPollEndpoint {
                 ComponentsHealthCheckRepository.REPOSITORY_ID, 
ComponentsHealthCheckRepository.class);
 
         if (healthCheckRepository != null) {
-            clientHealthCheck = new AWS2EC2HealthCheck(this, getId());
+            // Do not register the health check until we resolve CAMEL-18992
+            //clientHealthCheck = new AWS2EC2HealthCheck(this, getId());
+            //healthCheckRepository.addHealthCheck(clientHealthCheck);
         }
-
-        healthCheckRepository.addHealthCheck(clientHealthCheck);
     }
 
     @Override
diff --git 
a/components/camel-aws/camel-aws2-ec2/src/test/java/org/apache/camel/component/aws2/ec2/AWS2EC2HealthCheckProfileCredsTest.java
 
b/components/camel-aws/camel-aws2-ec2/src/test/java/org/apache/camel/component/aws2/ec2/AWS2EC2HealthCheckProfileCredsTest.java
index 1693708ca12..5c0c1341f30 100644
--- 
a/components/camel-aws/camel-aws2-ec2/src/test/java/org/apache/camel/component/aws2/ec2/AWS2EC2HealthCheckProfileCredsTest.java
+++ 
b/components/camel-aws/camel-aws2-ec2/src/test/java/org/apache/camel/component/aws2/ec2/AWS2EC2HealthCheckProfileCredsTest.java
@@ -27,6 +27,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;
@@ -71,6 +72,7 @@ public class AWS2EC2HealthCheckProfileCredsTest 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-ec2/src/test/java/org/apache/camel/component/aws2/ec2/AWS2EC2HealthCheckStaticCredsTest.java
 
b/components/camel-aws/camel-aws2-ec2/src/test/java/org/apache/camel/component/aws2/ec2/AWS2EC2HealthCheckStaticCredsTest.java
index 43421678669..83b12cd6b71 100644
--- 
a/components/camel-aws/camel-aws2-ec2/src/test/java/org/apache/camel/component/aws2/ec2/AWS2EC2HealthCheckStaticCredsTest.java
+++ 
b/components/camel-aws/camel-aws2-ec2/src/test/java/org/apache/camel/component/aws2/ec2/AWS2EC2HealthCheckStaticCredsTest.java
@@ -27,6 +27,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;
@@ -71,6 +72,7 @@ public class AWS2EC2HealthCheckStaticCredsTest 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