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 40557b47498bd07591206f76677d4d87365afe85
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Feb 8 14:22:00 2023 +0100

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

diff --git 
a/components/camel-aws/camel-aws2-iam/src/main/java/org/apache/camel/component/aws2/iam/IAM2Endpoint.java
 
b/components/camel-aws/camel-aws2-iam/src/main/java/org/apache/camel/component/aws2/iam/IAM2Endpoint.java
index 638a7ebcde1..55bca7e0b6a 100644
--- 
a/components/camel-aws/camel-aws2-iam/src/main/java/org/apache/camel/component/aws2/iam/IAM2Endpoint.java
+++ 
b/components/camel-aws/camel-aws2-iam/src/main/java/org/apache/camel/component/aws2/iam/IAM2Endpoint.java
@@ -71,10 +71,10 @@ public class IAM2Endpoint extends ScheduledPollEndpoint {
                 ComponentsHealthCheckRepository.REPOSITORY_ID, 
ComponentsHealthCheckRepository.class);
 
         if (healthCheckRepository != null) {
-            clientHealthCheck = new IAM2HealthCheck(this, getId());
+            // Do not register the health check until we resolve CAMEL-18992
+            // clientHealthCheck = new IAM2HealthCheck(this, getId());
+            // healthCheckRepository.addHealthCheck(clientHealthCheck);
         }
-
-        healthCheckRepository.addHealthCheck(clientHealthCheck);
     }
 
     @Override
diff --git 
a/components/camel-aws/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAM2HealthCheckProfileCredsTest.java
 
b/components/camel-aws/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAM2HealthCheckProfileCredsTest.java
index b3e780fb816..4c99ab14440 100644
--- 
a/components/camel-aws/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAM2HealthCheckProfileCredsTest.java
+++ 
b/components/camel-aws/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAM2HealthCheckProfileCredsTest.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;
@@ -70,6 +71,7 @@ public class IAM2HealthCheckProfileCredsTest 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-iam/src/test/java/org/apache/camel/component/aws2/iam/IAM2HealthCheckStaticCredsTest.java
 
b/components/camel-aws/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAM2HealthCheckStaticCredsTest.java
index 71e87f45079..81c1292404f 100644
--- 
a/components/camel-aws/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAM2HealthCheckStaticCredsTest.java
+++ 
b/components/camel-aws/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAM2HealthCheckStaticCredsTest.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;
@@ -70,6 +71,7 @@ public class IAM2HealthCheckStaticCredsTest 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