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

orpiske 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 bc71941  camel-google-pub-sub: fix not finding the endpoint on context 
(fails on CI)
bc71941 is described below

commit bc71941a6daacc577231280e8f984924ac1684e4
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Oct 8 11:47:39 2021 +0200

    camel-google-pub-sub: fix not finding the endpoint on context (fails on CI)
---
 .../apache/camel/component/google/pubsub/unit/PubsubEndpointTest.java   | 2 +-
 .../apache/camel/component/google/pubsub/unit/PubsubProducerTest.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubEndpointTest.java
 
b/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubEndpointTest.java
index d71fbe5..0915dd1 100644
--- 
a/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubEndpointTest.java
+++ 
b/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubEndpointTest.java
@@ -47,7 +47,7 @@ public class PubsubEndpointTest extends PubsubTestSupport {
     public void testEndpointConfiguration() throws Exception {
 
         // :1 identifies the first registered endpoint fo a type in the context
-        Endpoint endpoint = 
context.hasEndpoint(String.format("google-pubsub:%s:%s:1", PROJECT_ID, 
SUBSCRIPTION_URI));
+        Endpoint endpoint = 
context.hasEndpoint(String.format("google-pubsub:%s:%s", PROJECT_ID, 
SUBSCRIPTION_URI));
         assertNotNull(endpoint,
                 String.format("Endpoint 'google-pubsub:%s:%s' is not found in 
Camel Context", PROJECT_ID, SUBSCRIPTION_URI));
 
diff --git 
a/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubProducerTest.java
 
b/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubProducerTest.java
index 5ec608e..cc45b60 100644
--- 
a/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubProducerTest.java
+++ 
b/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/unit/PubsubProducerTest.java
@@ -40,7 +40,7 @@ public class PubsubProducerTest extends PubsubTestSupport {
     @Test
     public void testProducerConfiguration() throws Exception {
         // :1 indicates first of a component type in Camel context
-        Endpoint endpoint = 
context.hasEndpoint(String.format("google-pubsub:%s:%s:1", PROJECT_ID, 
TEST_TOPIC_NAME));
+        Endpoint endpoint = 
context.hasEndpoint(String.format("google-pubsub:%s:%s", PROJECT_ID, 
TEST_TOPIC_NAME));
         assertNotNull(endpoint,
                 String.format("Endpoint 'google-pubsub:%s:$s' is not found in 
Camel Context", PROJECT_ID, TEST_TOPIC_NAME));
 

Reply via email to