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 2d604cc1c374ed03e493746661bffa34ef0073d0 Author: Andrea Cosentino <[email protected]> AuthorDate: Wed Jul 24 15:58:56 2019 +0200 AWS-EKS Extension: EKSConfiguration needs to be registered for Reflection --- .../aws/eks/deployment/CamelAwsEKSProcessor.java | 2 + 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 +- 5 files changed, 3 insertions(+), 294 deletions(-) diff --git a/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/CamelAwsEKSProcessor.java b/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/CamelAwsEKSProcessor.java index c1d250b..b53f042 100644 --- a/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/CamelAwsEKSProcessor.java +++ b/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/CamelAwsEKSProcessor.java @@ -19,6 +19,7 @@ package org.apache.camel.quarkus.component.aws.eks.deployment; import java.util.Collection; import java.util.stream.Collectors; +import org.apache.camel.component.aws.eks.EKSConfiguration; import org.apache.commons.logging.impl.Jdk14Logger; import org.apache.commons.logging.impl.LogFactoryImpl; import org.jboss.jandex.ClassInfo; @@ -91,6 +92,7 @@ class CamelAwsEKSProcessor { CredentialScope.class.getCanonicalName(), LogFactoryImpl.class.getCanonicalName(), Jdk14Logger.class.getCanonicalName(), + EKSConfiguration.class.getCanonicalName(), "com.sun.org.apache.xerces.internal.parsers.SAXParser", "com.sun.xml.internal.stream.XMLInputFactoryImpl", "org.apache.camel.converter.jaxp.XmlConverter")); diff --git a/integration-tests/aws/pom.xml b/integration-tests/aws/pom.xml deleted file mode 100644 index f03370b..0000000 --- a/integration-tests/aws/pom.xml +++ /dev/null @@ -1,179 +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</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 deleted file mode 100644 index 1e42ac4..0000000 --- a/integration-tests/aws/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java +++ /dev/null @@ -1,50 +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-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 deleted file mode 100644 index 5d14f9f..0000000 --- a/integration-tests/aws/src/main/resources/application.properties +++ /dev/null @@ -1,64 +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 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 0f2917b..7690cfa 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -38,7 +38,7 @@ <module>core</module> <module>netty4-http</module> - <module>aws</module> + <module>aws-itests</module> <module>infinispan</module> <module>jdbc</module> <module>salesforce</module>
