This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch configuration-must-be-registered-for-refl in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 866e1937f8c08b3e809ef95f1aed3357ffde80d1 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Jul 24 10:24:31 2019 +0200 Add a single integration test module for the AWS extensions --- integration-tests/aws-eks/pom.xml | 165 --------------------- .../java/io/quarkus/it/camel/aws/CamelRoute.java | 33 ----- .../src/main/resources/application.properties | 43 ------ integration-tests/{aws-s3 => aws-itests}/pom.xml | 16 +- .../java/io/quarkus/it/camel/aws/CamelRoute.java | 18 ++- .../src/main/resources/application.properties | 29 +++- .../src/main/resources/application.properties | 43 ------ .../java/io/quarkus/it/camel/aws/CamelRoute.java | 35 ----- integration-tests/aws-sqs/pom.xml | 164 -------------------- integration-tests/{aws-sns => aws}/pom.xml | 24 ++- .../java/io/quarkus/it/camel/aws/CamelRoute.java | 19 ++- .../src/main/resources/application.properties | 29 +++- integration-tests/pom.xml | 5 +- 13 files changed, 115 insertions(+), 508 deletions(-) diff --git a/integration-tests/aws-eks/pom.xml b/integration-tests/aws-eks/pom.xml deleted file mode 100644 index 849288e..0000000 --- a/integration-tests/aws-eks/pom.xml +++ /dev/null @@ -1,165 +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"> - <parent> - <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-integration-tests</artifactId> - <version>0.0.1-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - - <artifactId>camel-quarkus-integration-test-aws-eks</artifactId> - <name>Camel Quarkus :: Integration Tests :: AWS EKS</name> - <description>The camel integration tests</description> - - - <dependencies> - <dependency> - <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-aws-eks</artifactId> - </dependency> - <dependency> - <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-log</artifactId> - </dependency> - <dependency> - <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-timer</artifactId> - </dependency> - <!-- test dependencies --> - <!-- - <dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-resteasy</artifactId> - </dependency> - - <dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-junit5</artifactId> - </dependency> - <dependency> - <groupId>org.glassfish</groupId> - <artifactId>javax.json</artifactId> - </dependency> - <dependency> - <groupId>io.rest-assured</groupId> - <artifactId>rest-assured</artifactId> - </dependency> - --> - </dependencies> - - <build> - <resources> - <resource> - <directory>src/main/resources</directory> - <filtering>true</filtering> - </resource> - </resources> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <skip>true</skip> - </configuration> - </plugin> - <plugin> - <artifactId>maven-failsafe-plugin</artifactId> - <configuration> - <skip>true</skip> - </configuration> - </plugin> - <plugin> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-maven-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>build</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-enforcer-plugin</artifactId> - <configuration> - <skip>true</skip> - </configuration> - </plugin> - </plugins> - </build> - - <profiles> - <profile> - <id>native-image</id> - <activation> - <property> - <name>native</name> - </property> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-failsafe-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - <configuration> - <systemProperties> - <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path> - </systemProperties> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-maven-plugin</artifactId> - <executions> - <execution> - <id>native-image</id> - <goals> - <goal>native-image</goal> - </goals> - <configuration> - <reportErrorsAtRuntime>false</reportErrorsAtRuntime> - <cleanupServer>true</cleanupServer> - <enableHttpUrlHandler>true</enableHttpUrlHandler> - <enableServer>false</enableServer> - <dumpProxies>false</dumpProxies> - <graalvmHome>${graalvmHome}</graalvmHome> - <enableJni>true</enableJni> - <enableAllSecurityServices>true</enableAllSecurityServices> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - </profiles> - -</project> diff --git a/integration-tests/aws-eks/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java b/integration-tests/aws-eks/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java deleted file mode 100644 index 37c46ea..0000000 --- a/integration-tests/aws-eks/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java +++ /dev/null @@ -1,33 +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 io.quarkus.it.camel.aws; - -import org.apache.camel.builder.RouteBuilder; - -import io.quarkus.runtime.annotations.RegisterForReflection; - -@RegisterForReflection -public class CamelRoute extends RouteBuilder { - - @Override - public void configure() { - from("timer:quarkus?repeatCount=1") - .to("aws-eks://cluster?operation=listClusters") - .to("log:sf?showAll=true"); - } - -} diff --git a/integration-tests/aws-eks/src/main/resources/application.properties b/integration-tests/aws-eks/src/main/resources/application.properties deleted file mode 100644 index aa1aaf2..0000000 --- a/integration-tests/aws-eks/src/main/resources/application.properties +++ /dev/null @@ -1,43 +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. -## --------------------------------------------------------------------------- -# -# Quarkus -# -quarkus.log.file.enable = false -quarkus.ssl.native=true - -# -# Quarkus :: Camel -# -quarkus.camel.disable-xml=true -quarkus.camel.disable-jaxb=true -quarkus.camel.dump-routes=true -quarkus.camel.defer-init-phase=true - -# -# Camel -# -camel.context.name = quarkus-camel-example -camel.component.properties.prefixToken={{ -camel.component.properties.suffixToken=}} - -# -# Camel :: AWS -# -camel.component.aws-eks.access-key={{env:EKS_ACCESS_KEY}} -camel.component.aws-eks.secret-key={{env:EKS_SECRET_KEY}} -camel.component.aws-eks.region={{env:EKS_REGION}} diff --git a/integration-tests/aws-s3/pom.xml b/integration-tests/aws-itests/pom.xml similarity index 91% rename from integration-tests/aws-s3/pom.xml rename to integration-tests/aws-itests/pom.xml index 9e5ff97..b54a6eb 100644 --- a/integration-tests/aws-s3/pom.xml +++ b/integration-tests/aws-itests/pom.xml @@ -27,8 +27,8 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>camel-quarkus-integration-test-aws-s3</artifactId> - <name>Camel Quarkus :: Integration Tests :: AWS S3</name> + <artifactId>camel-quarkus-integration-test-aws-itests</artifactId> + <name>Camel Quarkus :: Integration Tests :: AWS Integration tests</name> <description>The camel integration tests</description> @@ -39,6 +39,18 @@ </dependency> <dependency> <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-aws-sqs</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-aws-sns</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-aws-eks</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-log</artifactId> </dependency> <dependency> diff --git a/integration-tests/aws-s3/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java b/integration-tests/aws-itests/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java similarity index 63% rename from integration-tests/aws-s3/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java rename to integration-tests/aws-itests/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java index 79e542b..1e42ac4 100644 --- a/integration-tests/aws-s3/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java +++ b/integration-tests/aws-itests/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java @@ -25,12 +25,26 @@ public class CamelRoute extends RouteBuilder { @Override public void configure() { - from("timer:quarkus?repeatCount=1") + from("timer:quarkus-s3?repeatCount=1") .setHeader("CamelAwsS3Key", constant("testquarkus")) .setBody(constant("Quarkus is great!")) - .to("aws-s3://devvox1") + .to("aws-s3://camel-kafka-connector") .to("log:sf?showAll=true"); + from("timer:quarkus-sqs?repeatCount=1") + .setBody(constant("Quarkus is great!")) + .to("aws-sqs://camel-1") + .to("log:sf?showAll=true"); + + from("timer:quarkus-eks?repeatCount=1") + .setHeader("CamelAwsEKSOperation", constant("listClusters")) + .to("aws-eks://cluster") + .to("log:sf?showAll=true"); + + from("timer:quarkus-sns?repeatCount=1") + .setBody(constant("Quarkus is great!")) + .to("aws-sns://topic1") + .to("log:sf?showAll=true"); } } diff --git a/integration-tests/aws-sns/src/main/resources/application.properties b/integration-tests/aws-itests/src/main/resources/application.properties similarity index 63% rename from integration-tests/aws-sns/src/main/resources/application.properties rename to integration-tests/aws-itests/src/main/resources/application.properties index 8aef741..5d14f9f 100644 --- a/integration-tests/aws-sns/src/main/resources/application.properties +++ b/integration-tests/aws-itests/src/main/resources/application.properties @@ -36,8 +36,29 @@ camel.component.properties.prefixToken={{ camel.component.properties.suffixToken=}} # -# Camel :: AWS +# Camel :: AWS S3 # -camel.component.aws-sns.access-key={{env:SNS_ACCESS_KEY}} -camel.component.aws-sns.secret-key={{env:SNS_SECRET_KEY}} -camel.component.aws-sns.region={{env:SNS_REGION}} \ No newline at end of file +camel.component.aws-s3.access-key={{env:AWS_ACCESS_KEY}} +camel.component.aws-s3.secret-key={{env:AWS_SECRET_KEY}} +camel.component.aws-s3.region={{env:AWS_REGION}} + +# +# Camel :: AWS SNS +# +camel.component.aws-sns.access-key={{env:AWS_ACCESS_KEY}} +camel.component.aws-sns.secret-key={{env:AWS_SECRET_KEY}} +camel.component.aws-sns.region={{env:AWS_REGION}} + +# +# Camel :: AWS EKS +# +camel.component.aws-eks.access-key={{env:AWS_ACCESS_KEY}} +camel.component.aws-eks.secret-key={{env:AWS_SECRET_KEY}} +camel.component.aws-eks.region={{env:AWs_REGION}} + +# +# Camel :: AWS SQS +# +camel.component.aws-sqs.access-key={{env:AWS_ACCESS_KEY}} +camel.component.aws-sqs.secret-key={{env:AWS_SECRET_KEY}} +camel.component.aws-sqs.region={{env:AWS_REGION}} diff --git a/integration-tests/aws-s3/src/main/resources/application.properties b/integration-tests/aws-s3/src/main/resources/application.properties deleted file mode 100644 index db474df..0000000 --- a/integration-tests/aws-s3/src/main/resources/application.properties +++ /dev/null @@ -1,43 +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. -## --------------------------------------------------------------------------- -# -# Quarkus -# -quarkus.ssl.native=true -quarkus.log.file.enable = false - -# -# Quarkus :: Camel -# -quarkus.camel.disable-xml=true -quarkus.camel.disable-jaxb=true -quarkus.camel.dump-routes=true -quarkus.camel.defer-init-phase=true - -# -# Camel -# -camel.context.name = quarkus-camel-example -camel.component.properties.prefixToken={{ -camel.component.properties.suffixToken=}} - -# -# Camel :: AWS -# -camel.component.aws-s3.access-key={{env:S3_ACCESS_KEY}} -camel.component.aws-s3.secret-key={{env:S3_SECRET_KEY}} -camel.component.aws-s3.region={{env:S3_REGION}} diff --git a/integration-tests/aws-sns/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java b/integration-tests/aws-sns/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java deleted file mode 100644 index 15428c5..0000000 --- a/integration-tests/aws-sns/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java +++ /dev/null @@ -1,35 +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 io.quarkus.it.camel.aws; - -import org.apache.camel.builder.RouteBuilder; - -import io.quarkus.runtime.annotations.RegisterForReflection; - -@RegisterForReflection -public class CamelRoute extends RouteBuilder { - - @Override - public void configure() { - from("timer:quarkus?repeatCount=1") - .setBody(constant("Quarkus is great!")) - .to("aws-sns://topic1") - .to("log:sf?showAll=true"); - - } - -} diff --git a/integration-tests/aws-sqs/pom.xml b/integration-tests/aws-sqs/pom.xml deleted file mode 100644 index fd86f16..0000000 --- a/integration-tests/aws-sqs/pom.xml +++ /dev/null @@ -1,164 +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"> - <parent> - <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-integration-tests</artifactId> - <version>0.0.1-SNAPSHOT</version> - </parent> - <modelVersion>4.0.0</modelVersion> - - <artifactId>camel-quarkus-integration-test-aws-sqs</artifactId> - <name>Camel Quarkus :: Integration Tests :: AWS SQS</name> - <description>The camel integration tests</description> - - - <dependencies> - <dependency> - <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-aws-sqs</artifactId> - </dependency> - <dependency> - <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-log</artifactId> - </dependency> - <dependency> - <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-timer</artifactId> - </dependency> - <!-- test dependencies --> - <!-- - <dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-resteasy</artifactId> - </dependency> - <dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-junit5</artifactId> - </dependency> - <dependency> - <groupId>org.glassfish</groupId> - <artifactId>javax.json</artifactId> - </dependency> - <dependency> - <groupId>io.rest-assured</groupId> - <artifactId>rest-assured</artifactId> - </dependency> - --> - </dependencies> - - <build> - <resources> - <resource> - <directory>src/main/resources</directory> - <filtering>true</filtering> - </resource> - </resources> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <skip>true</skip> - </configuration> - </plugin> - <plugin> - <artifactId>maven-failsafe-plugin</artifactId> - <configuration> - <skip>true</skip> - </configuration> - </plugin> - <plugin> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-maven-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>build</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-enforcer-plugin</artifactId> - <configuration> - <skip>true</skip> - </configuration> - </plugin> - </plugins> - </build> - - <profiles> - <profile> - <id>native-image</id> - <activation> - <property> - <name>native</name> - </property> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-failsafe-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - <configuration> - <systemProperties> - <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path> - </systemProperties> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-maven-plugin</artifactId> - <executions> - <execution> - <id>native-image</id> - <goals> - <goal>native-image</goal> - </goals> - <configuration> - <reportErrorsAtRuntime>false</reportErrorsAtRuntime> - <cleanupServer>true</cleanupServer> - <enableHttpUrlHandler>true</enableHttpUrlHandler> - <enableServer>false</enableServer> - <dumpProxies>false</dumpProxies> - <graalvmHome>${graalvmHome}</graalvmHome> - <enableJni>true</enableJni> - <enableAllSecurityServices>true</enableAllSecurityServices> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - </profiles> - -</project> diff --git a/integration-tests/aws-sns/pom.xml b/integration-tests/aws/pom.xml similarity index 91% rename from integration-tests/aws-sns/pom.xml rename to integration-tests/aws/pom.xml index 4050f79..f03370b 100644 --- a/integration-tests/aws-sns/pom.xml +++ b/integration-tests/aws/pom.xml @@ -27,17 +27,30 @@ </parent> <modelVersion>4.0.0</modelVersion> - <artifactId>camel-quarkus-integration-test-aws-sns</artifactId> - <name>Camel Quarkus :: Integration Tests :: AWS SNS</name> + <artifactId>camel-quarkus-integration-test-aws</artifactId> + <name>Camel Quarkus :: Integration Tests :: AWS Integration tests</name> <description>The camel integration tests</description> + <dependencies> <dependency> <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-aws-s3</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-aws-sqs</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-aws-sns</artifactId> </dependency> <dependency> <groupId>org.apache.camel.quarkus</groupId> + <artifactId>camel-quarkus-aws-eks</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-log</artifactId> </dependency> <dependency> @@ -45,13 +58,14 @@ <artifactId>camel-quarkus-timer</artifactId> </dependency> + <!-- test dependencies --> <!-- - Not needed as we do not have tests <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-resteasy</artifactId> </dependency> + <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-junit5</artifactId> @@ -153,10 +167,6 @@ <graalvmHome>${graalvmHome}</graalvmHome> <enableJni>true</enableJni> <enableAllSecurityServices>true</enableAllSecurityServices> - <additionalBuildArgs> - - - </additionalBuildArgs> </configuration> </execution> </executions> diff --git a/integration-tests/aws-sqs/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java b/integration-tests/aws/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java similarity index 62% rename from integration-tests/aws-sqs/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java rename to integration-tests/aws/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java index 0aace04..1e42ac4 100644 --- a/integration-tests/aws-sqs/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java +++ b/integration-tests/aws/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java @@ -25,11 +25,26 @@ public class CamelRoute extends RouteBuilder { @Override public void configure() { - from("timer:quarkus?repeatCount=1") + from("timer:quarkus-s3?repeatCount=1") + .setHeader("CamelAwsS3Key", constant("testquarkus")) .setBody(constant("Quarkus is great!")) - .to("aws-sqs://camel-1") + .to("aws-s3://camel-kafka-connector") .to("log:sf?showAll=true"); + from("timer:quarkus-sqs?repeatCount=1") + .setBody(constant("Quarkus is great!")) + .to("aws-sqs://camel-1") + .to("log:sf?showAll=true"); + + from("timer:quarkus-eks?repeatCount=1") + .setHeader("CamelAwsEKSOperation", constant("listClusters")) + .to("aws-eks://cluster") + .to("log:sf?showAll=true"); + + from("timer:quarkus-sns?repeatCount=1") + .setBody(constant("Quarkus is great!")) + .to("aws-sns://topic1") + .to("log:sf?showAll=true"); } } diff --git a/integration-tests/aws-sqs/src/main/resources/application.properties b/integration-tests/aws/src/main/resources/application.properties similarity index 63% rename from integration-tests/aws-sqs/src/main/resources/application.properties rename to integration-tests/aws/src/main/resources/application.properties index a1cbbb8..5d14f9f 100644 --- a/integration-tests/aws-sqs/src/main/resources/application.properties +++ b/integration-tests/aws/src/main/resources/application.properties @@ -36,8 +36,29 @@ camel.component.properties.prefixToken={{ camel.component.properties.suffixToken=}} # -# Camel :: AWS +# Camel :: AWS S3 # -camel.component.aws-sqs.access-key={{env:SQS_ACCESS_KEY}} -camel.component.aws-sqs.secret-key={{env:SQS_SECRET_KEY}} -camel.component.aws-sqs.region={{env:SQS_REGION}} +camel.component.aws-s3.access-key={{env:AWS_ACCESS_KEY}} +camel.component.aws-s3.secret-key={{env:AWS_SECRET_KEY}} +camel.component.aws-s3.region={{env:AWS_REGION}} + +# +# Camel :: AWS SNS +# +camel.component.aws-sns.access-key={{env:AWS_ACCESS_KEY}} +camel.component.aws-sns.secret-key={{env:AWS_SECRET_KEY}} +camel.component.aws-sns.region={{env:AWS_REGION}} + +# +# Camel :: AWS EKS +# +camel.component.aws-eks.access-key={{env:AWS_ACCESS_KEY}} +camel.component.aws-eks.secret-key={{env:AWS_SECRET_KEY}} +camel.component.aws-eks.region={{env:AWs_REGION}} + +# +# Camel :: AWS SQS +# +camel.component.aws-sqs.access-key={{env:AWS_ACCESS_KEY}} +camel.component.aws-sqs.secret-key={{env:AWS_SECRET_KEY}} +camel.component.aws-sqs.region={{env:AWS_REGION}} diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index f8f91c0..0f2917b 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -38,10 +38,7 @@ <module>core</module> <module>netty4-http</module> - <module>aws-s3</module> - <module>aws-sns</module> - <module>aws-sqs</module> - <module>aws-eks</module> + <module>aws</module> <module>infinispan</module> <module>jdbc</module> <module>salesforce</module>