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 2019/07/24 13:59:32 UTC
[camel-quarkus] 01/05: Changed the integration test module name and
folder name
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 b7ad0b4efd90e2a8f9009904de81bf1665cff9af
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 24 15:01:32 2019 +0200
Changed the integration test module name and folder name
---
integration-tests/aws/pom.xml | 179 +++++++++++++++++++++
.../java/io/quarkus/it/camel/aws/CamelRoute.java | 50 ++++++
.../aws/src/main/resources/application.properties | 64 ++++++++
integration-tests/pom.xml | 2 +-
4 files changed, 294 insertions(+), 1 deletion(-)
diff --git a/integration-tests/aws/pom.xml b/integration-tests/aws/pom.xml
new file mode 100644
index 0000000..f03370b
--- /dev/null
+++ b/integration-tests/aws/pom.xml
@@ -0,0 +1,179 @@
+<?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</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>
+ <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/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java b/integration-tests/aws/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java
new file mode 100644
index 0000000..1e42ac4
--- /dev/null
+++ b/integration-tests/aws/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java
@@ -0,0 +1,50 @@
+/*
+ * 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-s3?repeatCount=1")
+ .setHeader("CamelAwsS3Key", constant("testquarkus"))
+ .setBody(constant("Quarkus is great!"))
+ .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/src/main/resources/application.properties b/integration-tests/aws/src/main/resources/application.properties
new file mode 100644
index 0000000..5d14f9f
--- /dev/null
+++ b/integration-tests/aws/src/main/resources/application.properties
@@ -0,0 +1,64 @@
+## ---------------------------------------------------------------------------
+## 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 S3
+#
+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 7690cfa..0f2917b 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -38,7 +38,7 @@
<module>core</module>
<module>netty4-http</module>
- <module>aws-itests</module>
+ <module>aws</module>
<module>infinispan</module>
<module>jdbc</module>
<module>salesforce</module>