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/06/17 09:20:51 UTC
[camel-quarkus] branch aws2-iam created (now b20f1ae)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch aws2-iam
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git.
at b20f1ae AWS2-IAM: Regen metadata
This branch includes the following new commits:
new 8188694 Added an AWS2-IAM native extension
new 462fd1a Camel-AWS2-IAM: Add specific option for region in tests
new b20f1ae AWS2-IAM: Regen metadata
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[camel-quarkus] 01/03: Added an AWS2-IAM native extension
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch aws2-iam
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 818869484ea5eda59fcab66d2847af9e4019a380
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jun 17 10:22:56 2020 +0200
Added an AWS2-IAM native extension
---
docs/modules/ROOT/pages/extensions/aws2-iam.adoc | 2 +-
.../pages/list-of-camel-quarkus-extensions.adoc | 2 +-
.../aws2/iam/deployment/Aws2IamProcessor.java | 47 -------------
extensions-jvm/aws2-iam/integration-test/pom.xml | 81 ----------------------
.../component/aws2/iam/it/Aws2IamResource.java | 51 --------------
.../quarkus/component/aws2/iam/it/Aws2IamTest.java | 34 ---------
extensions-jvm/pom.xml | 1 -
.../aws2-iam/deployment/pom.xml | 12 ++++
.../aws2/iam/deployment/Aws2IamProcessor.java | 67 ++++++++++++++++++
{extensions-jvm => extensions}/aws2-iam/pom.xml | 1 -
.../aws2-iam/runtime/pom.xml | 12 ++++
.../main/resources/META-INF/quarkus-extension.yaml | 0
extensions/pom.xml | 1 +
integration-tests/aws2/pom.xml | 4 ++
poms/bom/pom.xml | 6 ++
15 files changed, 104 insertions(+), 217 deletions(-)
diff --git a/docs/modules/ROOT/pages/extensions/aws2-iam.adoc b/docs/modules/ROOT/pages/extensions/aws2-iam.adoc
index 024b329..54d26cd 100644
--- a/docs/modules/ROOT/pages/extensions/aws2-iam.adoc
+++ b/docs/modules/ROOT/pages/extensions/aws2-iam.adoc
@@ -5,7 +5,7 @@
= AWS 2 IAM
[.badges]
-[.badge-key]##Since Camel Quarkus##[.badge-version]##1.0.0-M6## [.badge-key]##JVM##[.badge-supported]##supported## [.badge-key]##Native##[.badge-unsupported]##unsupported##
+[.badge-key]##Since Camel Quarkus##[.badge-version]##1.0.0-M6## [.badge-key]##JVM##[.badge-supported]##supported## [.badge-key]##Native##[.badge-supported]##supported##
Manage AWS IAM instances using AWS SDK version 2.x.
diff --git a/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc b/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
index 5afa4fc..1fcbb91 100644
--- a/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
+++ b/docs/modules/ROOT/pages/list-of-camel-quarkus-extensions.adoc
@@ -46,7 +46,7 @@ Number of Camel components: 149 in 114 JAR artifacts (0 deprecated)
| xref:extensions/aws2-eks.adoc[AWS 2 EKS] | camel-quarkus-aws2-eks | Native + Stable | 1.0.0-M6 | Manage AWS EKS cluster instances using AWS SDK version 2.x.
-| xref:extensions/aws2-iam.adoc[AWS 2 IAM] | camel-quarkus-aws2-iam | JVM + Preview | 1.0.0-M6 | Manage AWS IAM instances using AWS SDK version 2.x.
+| xref:extensions/aws2-iam.adoc[AWS 2 IAM] | camel-quarkus-aws2-iam | Native + Stable | 1.0.0-M6 | Manage AWS IAM instances using AWS SDK version 2.x.
| xref:extensions/aws2-kms.adoc[AWS 2 KMS] | camel-quarkus-aws2-kms | JVM + Preview | 1.0.0-M6 | Manage keys stored in AWS KMS instances using AWS SDK version 2.x.
diff --git a/extensions-jvm/aws2-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws2/iam/deployment/Aws2IamProcessor.java b/extensions-jvm/aws2-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws2/iam/deployment/Aws2IamProcessor.java
deleted file mode 100644
index 2ed4a5c..0000000
--- a/extensions-jvm/aws2-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws2/iam/deployment/Aws2IamProcessor.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.quarkus.component.aws2.iam.deployment;
-
-import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.annotations.ExecutionTime;
-import io.quarkus.deployment.annotations.Record;
-import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.pkg.steps.NativeBuild;
-import org.apache.camel.quarkus.core.JvmOnlyRecorder;
-import org.jboss.logging.Logger;
-
-class Aws2IamProcessor {
- private static final Logger LOG = Logger.getLogger(Aws2IamProcessor.class);
-
- private static final String FEATURE = "camel-aws2-iam";
-
- @BuildStep
- FeatureBuildItem feature() {
- return new FeatureBuildItem(FEATURE);
- }
-
- /**
- * Remove this once this extension starts supporting the native mode.
- */
- @BuildStep(onlyIf = NativeBuild.class)
- @Record(value = ExecutionTime.RUNTIME_INIT)
- void warnJvmInNative(JvmOnlyRecorder recorder) {
- JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time
- recorder.warnJvmInNative(FEATURE); // warn at runtime
- }
-
-}
diff --git a/extensions-jvm/aws2-iam/integration-test/pom.xml b/extensions-jvm/aws2-iam/integration-test/pom.xml
deleted file mode 100644
index 50a4fcc..0000000
--- a/extensions-jvm/aws2-iam/integration-test/pom.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-build-parent-it</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <relativePath>../../../poms/build-parent-it/pom.xml</relativePath>
- </parent>
-
- <artifactId>camel-quarkus-aws2-iam-integration-test</artifactId>
- <name>Camel Quarkus :: AWS 2 IAM :: Integration Test</name>
- <description>Integration tests for Camel Quarkus AWS 2 IAM extension</description>
-
- <properties>
- <!-- mvnd, a.k.a. Maven Daemon: https://github.com/gnodet/mvnd -->
- <!-- The following rule tells mvnd to build the listed deployment modules before this module. -->
- <!-- This is important because mvnd builds modules in parallel by default. The deployment modules are not -->
- <!-- explicit dependencies of this module in the Maven sense, although they are required by the Quarkus Maven plugin. -->
- <!-- Please update rule whenever you change the dependencies of this module by running -->
- <!-- mvn process-resources -Pformat from the root directory -->
- <mvnd.builder.rule>camel-quarkus-aws2-iam-deployment,camel-quarkus-support-policy-deployment</mvnd.builder.rule>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-aws2-iam</artifactId>
- </dependency>
- <dependency>
- <groupId>io.quarkus</groupId>
- <artifactId>quarkus-resteasy</artifactId>
- </dependency>
-
- <!-- test dependencies -->
- <dependency>
- <groupId>io.quarkus</groupId>
- <artifactId>quarkus-junit5</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>io.rest-assured</groupId>
- <artifactId>rest-assured</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>io.quarkus</groupId>
- <artifactId>quarkus-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/extensions-jvm/aws2-iam/integration-test/src/main/java/org/apache/camel/quarkus/component/aws2/iam/it/Aws2IamResource.java b/extensions-jvm/aws2-iam/integration-test/src/main/java/org/apache/camel/quarkus/component/aws2/iam/it/Aws2IamResource.java
deleted file mode 100644
index 15f71f8..0000000
--- a/extensions-jvm/aws2-iam/integration-test/src/main/java/org/apache/camel/quarkus/component/aws2/iam/it/Aws2IamResource.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.quarkus.component.aws2.iam.it;
-
-import javax.enterprise.context.ApplicationScoped;
-import javax.inject.Inject;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.Response;
-
-import org.apache.camel.CamelContext;
-import org.jboss.logging.Logger;
-
-@Path("/aws2-iam")
-@ApplicationScoped
-public class Aws2IamResource {
-
- private static final Logger LOG = Logger.getLogger(Aws2IamResource.class);
-
- private static final String COMPONENT_AWS2_IAM = "aws2-iam";
- @Inject
- CamelContext context;
-
- @Path("/load/component/aws2-iam")
- @GET
- @Produces(MediaType.TEXT_PLAIN)
- public Response loadComponentAws2Iam() throws Exception {
- /* This is an autogenerated test */
- if (context.getComponent(COMPONENT_AWS2_IAM) != null) {
- return Response.ok().build();
- }
- LOG.warnf("Could not load [%s] from the Camel context", COMPONENT_AWS2_IAM);
- return Response.status(500, COMPONENT_AWS2_IAM + " could not be loaded from the Camel context").build();
- }
-}
diff --git a/extensions-jvm/aws2-iam/integration-test/src/test/java/org/apache/camel/quarkus/component/aws2/iam/it/Aws2IamTest.java b/extensions-jvm/aws2-iam/integration-test/src/test/java/org/apache/camel/quarkus/component/aws2/iam/it/Aws2IamTest.java
deleted file mode 100644
index dbf66ca..0000000
--- a/extensions-jvm/aws2-iam/integration-test/src/test/java/org/apache/camel/quarkus/component/aws2/iam/it/Aws2IamTest.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.quarkus.component.aws2.iam.it;
-
-import io.quarkus.test.junit.QuarkusTest;
-import io.restassured.RestAssured;
-import org.junit.jupiter.api.Test;
-
-@QuarkusTest
-class Aws2IamTest {
-
- @Test
- public void loadComponentAws2Iam() {
- /* A simple autogenerated test */
- RestAssured.get("/aws2-iam/load/component/aws2-iam")
- .then()
- .statusCode(200);
- }
-
-}
diff --git a/extensions-jvm/pom.xml b/extensions-jvm/pom.xml
index bb1a533..2a3af69 100644
--- a/extensions-jvm/pom.xml
+++ b/extensions-jvm/pom.xml
@@ -35,7 +35,6 @@
<modules>
<!-- extensions a..z; do not remove this comment, it is important when sorting via mvn process-resources -Pformat -->
<module>avro-rpc</module>
- <module>aws2-iam</module>
<module>aws2-kms</module>
<module>aws2-mq</module>
<module>aws2-msk</module>
diff --git a/extensions-jvm/aws2-iam/deployment/pom.xml b/extensions/aws2-iam/deployment/pom.xml
similarity index 84%
rename from extensions-jvm/aws2-iam/deployment/pom.xml
rename to extensions/aws2-iam/deployment/pom.xml
index f5bd881..90617f1 100644
--- a/extensions-jvm/aws2-iam/deployment/pom.xml
+++ b/extensions/aws2-iam/deployment/pom.xml
@@ -50,6 +50,18 @@
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws2-iam</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-support-xml-deployment</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-support-commons-logging-deployment</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-support-aws2-deployment</artifactId>
+ </dependency>
</dependencies>
<build>
diff --git a/extensions/aws2-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws2/iam/deployment/Aws2IamProcessor.java b/extensions/aws2-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws2/iam/deployment/Aws2IamProcessor.java
new file mode 100644
index 0000000..0ce336a
--- /dev/null
+++ b/extensions/aws2-iam/deployment/src/main/java/org/apache/camel/quarkus/component/aws2/iam/deployment/Aws2IamProcessor.java
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.aws2.iam.deployment;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.stream.Collectors;
+
+import io.quarkus.deployment.annotations.BuildProducer;
+import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
+import io.quarkus.deployment.builditem.FeatureBuildItem;
+import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
+import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
+import org.jboss.jandex.DotName;
+import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
+
+class Aws2IamProcessor {
+ private static final String FEATURE = "camel-aws2-iam";
+
+ public static final String AWS_SDK_APPLICATION_ARCHIVE_MARKERS = "software/amazon/awssdk";
+
+ private static final List<String> INTERCEPTOR_PATHS = Arrays.asList(
+ "software/amazon/awssdk/global/handlers/execution.interceptors",
+ "software/amazon/awssdk/services/iam/execution.interceptors");
+
+ private static final DotName EXECUTION_INTERCEPTOR_NAME = DotName.createSimple(ExecutionInterceptor.class.getName());
+
+ @BuildStep
+ FeatureBuildItem feature() {
+ return new FeatureBuildItem(FEATURE);
+ }
+
+ @BuildStep(applicationArchiveMarkers = { AWS_SDK_APPLICATION_ARCHIVE_MARKERS })
+ void process(CombinedIndexBuildItem combinedIndexBuildItem,
+ BuildProducer<ReflectiveClassBuildItem> reflectiveClasses,
+ BuildProducer<NativeImageResourceBuildItem> resource) {
+
+ INTERCEPTOR_PATHS.forEach(path -> resource.produce(new NativeImageResourceBuildItem(path)));
+
+ List<String> knownInterceptorImpls = combinedIndexBuildItem.getIndex()
+ .getAllKnownImplementors(EXECUTION_INTERCEPTOR_NAME)
+ .stream()
+ .map(c -> c.name().toString()).collect(Collectors.toList());
+
+ reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false,
+ knownInterceptorImpls.toArray(new String[knownInterceptorImpls.size()])));
+
+ reflectiveClasses.produce(new ReflectiveClassBuildItem(true, false,
+ String.class.getCanonicalName()));
+ }
+
+}
diff --git a/extensions-jvm/aws2-iam/pom.xml b/extensions/aws2-iam/pom.xml
similarity index 97%
rename from extensions-jvm/aws2-iam/pom.xml
rename to extensions/aws2-iam/pom.xml
index 6a57cbd..f5f0a8b 100644
--- a/extensions-jvm/aws2-iam/pom.xml
+++ b/extensions/aws2-iam/pom.xml
@@ -33,6 +33,5 @@
<modules>
<module>deployment</module>
<module>runtime</module>
- <module>integration-test</module>
</modules>
</project>
diff --git a/extensions-jvm/aws2-iam/runtime/pom.xml b/extensions/aws2-iam/runtime/pom.xml
similarity index 87%
rename from extensions-jvm/aws2-iam/runtime/pom.xml
rename to extensions/aws2-iam/runtime/pom.xml
index e952154..6c0eb59 100644
--- a/extensions-jvm/aws2-iam/runtime/pom.xml
+++ b/extensions/aws2-iam/runtime/pom.xml
@@ -54,6 +54,18 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-aws2-iam</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-support-aws2</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-support-xml</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-support-commons-logging</artifactId>
+ </dependency>
</dependencies>
<build>
diff --git a/extensions-jvm/aws2-iam/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/aws2-iam/runtime/src/main/resources/META-INF/quarkus-extension.yaml
similarity index 100%
rename from extensions-jvm/aws2-iam/runtime/src/main/resources/META-INF/quarkus-extension.yaml
rename to extensions/aws2-iam/runtime/src/main/resources/META-INF/quarkus-extension.yaml
diff --git a/extensions/pom.xml b/extensions/pom.xml
index aadaf29..f0043b1 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -57,6 +57,7 @@
<module>aws2-ec2</module>
<module>aws2-ecs</module>
<module>aws2-eks</module>
+ <module>aws2-iam</module>
<module>aws2-s3</module>
<module>aws2-sns</module>
<module>aws2-sqs</module>
diff --git a/integration-tests/aws2/pom.xml b/integration-tests/aws2/pom.xml
index 018e926..6fd4b41 100644
--- a/integration-tests/aws2/pom.xml
+++ b/integration-tests/aws2/pom.xml
@@ -62,6 +62,10 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws2-iam</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws2-s3</artifactId>
</dependency>
<dependency>
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index b4d3167..bf6c642 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -275,6 +275,12 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-aws2-iam</artifactId>
<version>${camel.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>software.amazon.awssdk</groupId>
+ <artifactId>netty-nio-client</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
[camel-quarkus] 02/03: Camel-AWS2-IAM: Add specific option for
region in tests
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch aws2-iam
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 462fd1ae22428adfcb0bbe72e24242b07ae2a2c6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jun 17 11:16:30 2020 +0200
Camel-AWS2-IAM: Add specific option for region in tests
---
.../camel/quarkus/component/aws2/CamelRoute.java | 4 +++
.../aws2/src/main/resources/application.properties | 38 ++++++++++++++++++++--
2 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/integration-tests/aws2/src/main/java/org/apache/camel/quarkus/component/aws2/CamelRoute.java b/integration-tests/aws2/src/main/java/org/apache/camel/quarkus/component/aws2/CamelRoute.java
index 1c4b08c..4e68886 100644
--- a/integration-tests/aws2/src/main/java/org/apache/camel/quarkus/component/aws2/CamelRoute.java
+++ b/integration-tests/aws2/src/main/java/org/apache/camel/quarkus/component/aws2/CamelRoute.java
@@ -69,6 +69,10 @@ public class CamelRoute extends RouteBuilder {
.setHeader("CamelAwsEKSOperation", constant("listClusters"))
.to("aws2-eks://cluster")
.to("log:sf?showAll=true");
+
+ from("timer:quarkus-iam?repeatCount=1")
+ .to("aws2-iam://cluster?operation=listAccessKeys")
+ .to("log:sf?showAll=true");
}
}
diff --git a/integration-tests/aws2/src/main/resources/application.properties b/integration-tests/aws2/src/main/resources/application.properties
index e8b72ca..4efed20 100644
--- a/integration-tests/aws2/src/main/resources/application.properties
+++ b/integration-tests/aws2/src/main/resources/application.properties
@@ -22,6 +22,38 @@ camel.context.name = quarkus-camel-example
#
# Camel :: AWS2 options
#
-camel.component.aws2-*.access-key={{env:AWS_ACCESS_KEY}}
-camel.component.aws2-*.secret-key={{env:AWS_SECRET_KEY}}
-camel.component.aws2-*.region={{env:AWS_REGION}}
\ No newline at end of file
+camel.component.aws2-s3.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws2-s3.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws2-s3.region={{env:AWS_REGION}}
+
+camel.component.aws2-sqs.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws2-sqs.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws2-sqs.region={{env:AWS_REGION}}
+
+camel.component.aws2-sns.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws2-sns.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws2-sns.region={{env:AWS_REGION}}
+
+camel.component.aws2-ec2.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws2-ec2.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws2-ec2.region={{env:AWS_REGION}}
+
+camel.component.aws2-cw.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws2-cw.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws2-cw.region={{env:AWS_REGION}}
+
+camel.component.aws2-translate.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws2-translate.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws2-translate.region={{env:AWS_REGION}}
+
+camel.component.aws2-ecs.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws2-ecs.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws2-ecs.region={{env:AWS_REGION}}
+
+camel.component.aws2-eks.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws2-eks.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws2-eks.region={{env:AWS_REGION}}
+
+camel.component.aws2-iam.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws2-iam.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws2-iam.region={{env:AWS_IAM_REGION}}
[camel-quarkus] 03/03: AWS2-IAM: Regen metadata
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch aws2-iam
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit b20f1ae76eefed13a5985020fedabdcfa7d3bae1
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jun 17 11:20:19 2020 +0200
AWS2-IAM: Regen metadata
---
.../aws2-iam/runtime/src/main/resources/META-INF/quarkus-extension.yaml | 2 --
1 file changed, 2 deletions(-)
diff --git a/extensions/aws2-iam/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/aws2-iam/runtime/src/main/resources/META-INF/quarkus-extension.yaml
index 3f935d8..1e44551 100644
--- a/extensions/aws2-iam/runtime/src/main/resources/META-INF/quarkus-extension.yaml
+++ b/extensions/aws2-iam/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -24,8 +24,6 @@
name: "Camel AWS 2 IAM"
description: "Manage AWS IAM instances using AWS SDK version 2.x"
metadata:
- unlisted: true
guide: "https://camel.apache.org/camel-quarkus/latest/extensions/aws2-iam.html"
categories:
- "integration"
- status: "preview"