You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/11/04 13:40:57 UTC

[camel] branch main updated: CAMEL-16975: Health Check now possible for consumer (#6354)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 1c4ac1d  CAMEL-16975: Health Check now possible for consumer (#6354)
1c4ac1d is described below

commit 1c4ac1d623c6a411e65b5a95d2e6df251cb54366
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Nov 4 14:40:20 2021 +0100

    CAMEL-16975: Health Check now possible for consumer (#6354)
---
 .../camel/component/telegram/TelegramConsumerHealthCheckErrorTest.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/TelegramConsumerHealthCheckErrorTest.java b/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/TelegramConsumerHealthCheckErrorTest.java
index 4b1a285..76f6711 100644
--- a/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/TelegramConsumerHealthCheckErrorTest.java
+++ b/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/TelegramConsumerHealthCheckErrorTest.java
@@ -75,6 +75,8 @@ public class TelegramConsumerHealthCheckErrorTest extends TelegramTestSupport {
         String msg = rc.getMessage().get();
         long count = (long) rc.getDetails().get(HealthCheck.FAILURE_ERROR_COUNT);
         Assertions.assertEquals("Consumer failed polling " + count + " times route: telegram (telegram://bots)", msg);
+        Assertions.assertEquals("telegram://bots?authorizationToken=mock-token",
+                rc.getDetails().get(HealthCheck.FAILURE_ENDPOINT_URI));
 
         Throwable e = rc.getError().get();
         Assertions.assertTrue(e.getMessage().contains("401 Unauthorized"));