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 14:30:57 UTC
[camel] 03/06: CAMEL-15836 - Camel-AWS2-IAM: enable autowire on the
Iam client, fixed 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 cd652aec60663ec134223391369da17e83f4a44a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Nov 16 15:15:54 2020 +0100
CAMEL-15836 - Camel-AWS2-IAM: enable autowire on the Iam client, fixed test
---
.../component/aws2/iam/IAMComponentClientRegistryTest.java | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/components/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAMComponentClientRegistryTest.java b/components/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAMComponentClientRegistryTest.java
index 425a1cc..b2a37e0 100644
--- a/components/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAMComponentClientRegistryTest.java
+++ b/components/camel-aws2-iam/src/test/java/org/apache/camel/component/aws2/iam/IAMComponentClientRegistryTest.java
@@ -47,19 +47,7 @@ public class IAMComponentClientRegistryTest extends CamelTestSupport {
}
@Test
- public void createEndpointWithAutoDiscoverClientFalse() throws Exception {
-
- AmazonIAMClientMock clientMock = new AmazonIAMClientMock();
- context.getRegistry().bind("amazonIamClient", clientMock);
- IAM2Component component = context.getComponent("aws2-iam", IAM2Component.class);
- IAM2Endpoint endpoint = (IAM2Endpoint) component
- .createEndpoint("aws2-iam://TestDomain?accessKey=xxx&secretKey=yyy&autoDiscoverClient=false");
-
- assertNotSame(clientMock, endpoint.getConfiguration().getIamClient());
- }
-
- @Test
- public void createEndpointWithAutoDiscoverClientTrue() throws Exception {
+ public void createEndpointWithAutowire() throws Exception {
AmazonIAMClientMock clientMock = new AmazonIAMClientMock();
context.getRegistry().bind("amazonIamClient", clientMock);