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/08/05 09:32:36 UTC

[camel] 01/04: Camel-AWS2-STS: Remove refs to ECS

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 815d52740d950451172b6f811f6f724c7b98fdca
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Aug 5 11:29:54 2020 +0200

    Camel-AWS2-STS: Remove refs to ECS
---
 .../org/apache/camel/component/aws2/sts/STS2Configuration.java | 10 +++++-----
 .../java/org/apache/camel/component/aws2/sts/STS2Endpoint.java |  2 +-
 .../component/aws2/sts/STS2ComponentClientRegistryTest.java    |  4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/components/camel-aws2-sts/src/main/java/org/apache/camel/component/aws2/sts/STS2Configuration.java b/components/camel-aws2-sts/src/main/java/org/apache/camel/component/aws2/sts/STS2Configuration.java
index 9f949dc..f554dcb 100644
--- a/components/camel-aws2-sts/src/main/java/org/apache/camel/component/aws2/sts/STS2Configuration.java
+++ b/components/camel-aws2-sts/src/main/java/org/apache/camel/component/aws2/sts/STS2Configuration.java
@@ -59,7 +59,7 @@ public class STS2Configuration implements Cloneable {
     }
 
     /**
-     * To use a existing configured AWS ECS as client
+     * To use a existing configured AWS STS as client
      */
     public void setStsClient(StsClient stsClient) {
         this.stsClient = stsClient;
@@ -103,7 +103,7 @@ public class STS2Configuration implements Cloneable {
     }
 
     /**
-     * To define a proxy protocol when instantiating the ECS client
+     * To define a proxy protocol when instantiating the STS client
      */
     public void setProxyProtocol(Protocol proxyProtocol) {
         this.proxyProtocol = proxyProtocol;
@@ -114,7 +114,7 @@ public class STS2Configuration implements Cloneable {
     }
 
     /**
-     * To define a proxy host when instantiating the ECS client
+     * To define a proxy host when instantiating the STS client
      */
     public void setProxyHost(String proxyHost) {
         this.proxyHost = proxyHost;
@@ -125,7 +125,7 @@ public class STS2Configuration implements Cloneable {
     }
 
     /**
-     * To define a proxy port when instantiating the ECS client
+     * To define a proxy port when instantiating the STS client
      */
     public void setProxyPort(Integer proxyPort) {
         this.proxyPort = proxyPort;
@@ -136,7 +136,7 @@ public class STS2Configuration implements Cloneable {
     }
 
     /**
-     * The region in which ECS client needs to work. When using this parameter,
+     * The region in which STS client needs to work. When using this parameter,
      * the configuration will expect the lowercase name of the region (for
      * example ap-east-1) You'll need to use the name Region.EU_WEST_1.id()
      */
diff --git a/components/camel-aws2-sts/src/main/java/org/apache/camel/component/aws2/sts/STS2Endpoint.java b/components/camel-aws2-sts/src/main/java/org/apache/camel/component/aws2/sts/STS2Endpoint.java
index 68378f5..b3c97a1 100644
--- a/components/camel-aws2-sts/src/main/java/org/apache/camel/component/aws2/sts/STS2Endpoint.java
+++ b/components/camel-aws2-sts/src/main/java/org/apache/camel/component/aws2/sts/STS2Endpoint.java
@@ -40,7 +40,7 @@ import software.amazon.awssdk.services.sts.StsClientBuilder;
 import software.amazon.awssdk.utils.AttributeMap;
 
 /**
- * Manage AWS ECS cluster instances using AWS SDK version 2.x.
+ * Manage AWS STS cluster instances using AWS SDK version 2.x.
  */
 @UriEndpoint(firstVersion = "3.5.0", scheme = "aws2-sts", title = "AWS 2 Security Token Service (STS)", syntax = "aws2-sts:label", producerOnly = true, category = {Category.CLOUD,
                                                                                                                                                                     Category.MANAGEMENT})
diff --git a/components/camel-aws2-sts/src/test/java/org/apache/camel/component/aws2/sts/STS2ComponentClientRegistryTest.java b/components/camel-aws2-sts/src/test/java/org/apache/camel/component/aws2/sts/STS2ComponentClientRegistryTest.java
index b8a6d6c..8a39246 100644
--- a/components/camel-aws2-sts/src/test/java/org/apache/camel/component/aws2/sts/STS2ComponentClientRegistryTest.java
+++ b/components/camel-aws2-sts/src/test/java/org/apache/camel/component/aws2/sts/STS2ComponentClientRegistryTest.java
@@ -27,7 +27,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
 public class STS2ComponentClientRegistryTest extends CamelTestSupport {
 
     @Test
-    public void createEndpointWithMinimalECSClientConfiguration() throws Exception {
+    public void createEndpointWithMinimalSTSClientConfiguration() throws Exception {
 
         AmazonSTSClientMock clientMock = new AmazonSTSClientMock();
         context.getRegistry().bind("amazonStsClient", clientMock);
@@ -38,7 +38,7 @@ public class STS2ComponentClientRegistryTest extends CamelTestSupport {
     }
 
     @Test
-    public void createEndpointWithMinimalECSClientMisconfiguration() throws Exception {
+    public void createEndpointWithMinimalSTSClientMisconfiguration() throws Exception {
 
         STS2Component component = context.getComponent("aws2-sts", STS2Component.class);
         assertThrows(IllegalArgumentException.class, () -> {