You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/11/16 07:05:47 UTC
[camel] 04/06: CAMEL-15836 - Camel-AWS2-ECS: enable autowire on the
ECS client, additional test
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit fc9a7a35322d6a808e428c8e37e7f3565e9b91f0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Nov 16 07:58:25 2020 +0100
CAMEL-15836 - Camel-AWS2-ECS: enable autowire on the ECS client, additional test
---
.../component/aws2/ecs/ECS2ComponentClientRegistryTest.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/components/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ComponentClientRegistryTest.java b/components/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ComponentClientRegistryTest.java
index b7f92b5..bd552d8 100644
--- a/components/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ComponentClientRegistryTest.java
+++ b/components/camel-aws2-ecs/src/test/java/org/apache/camel/component/aws2/ecs/ECS2ComponentClientRegistryTest.java
@@ -55,4 +55,15 @@ public class ECS2ComponentClientRegistryTest extends CamelTestSupport {
assertSame(clientMock, endpoint.getConfiguration().getEcsClient());
}
+
+ @Test
+ public void createEndpointWithAutowireAndNoCreds() throws Exception {
+
+ AmazonECSClientMock clientMock = new AmazonECSClientMock();
+ context.getRegistry().bind("amazonEcsClient", clientMock);
+ ECS2Component component = context.getComponent("aws2-ecs", ECS2Component.class);
+ ECS2Endpoint endpoint = (ECS2Endpoint) component.createEndpoint("aws2-ecs://TestDomain");
+
+ assertSame(clientMock, endpoint.getConfiguration().getEcsClient());
+ }
}