You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2021/05/26 13:03:39 UTC
[camel-quarkus] 02/07: Reorder deps and routes in the old AWS2 test,
remove deps tested elsewhere
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit e2d45e3394b8c17d6fe6d9d5f621319b5a506296
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Tue May 25 17:29:24 2021 +0200
Reorder deps and routes in the old AWS2 test, remove deps tested elsewhere
---
integration-tests/aws2/pom.xml | 9 ------
.../camel/quarkus/component/aws2/CamelRoute.java | 34 ++++++++++------------
2 files changed, 15 insertions(+), 28 deletions(-)
diff --git a/integration-tests/aws2/pom.xml b/integration-tests/aws2/pom.xml
index 55ee717..7908353 100644
--- a/integration-tests/aws2/pom.xml
+++ b/integration-tests/aws2/pom.xml
@@ -36,10 +36,6 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-aws2-ddb</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws2-cw</artifactId>
</dependency>
<dependency>
@@ -68,10 +64,6 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-aws2-lambda</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-aws2-mq</artifactId>
</dependency>
<dependency>
@@ -95,7 +87,6 @@
<artifactId>camel-quarkus-timer</artifactId>
</dependency>
-
<!-- test dependencies -->
<dependency>
<groupId>io.quarkus</groupId>
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 3017265..95fa16b 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
@@ -26,8 +26,8 @@ public class CamelRoute extends RouteBuilder {
@Override
public void configure() {
- from("timer:quarkus-ec2?repeatCount=1")
- .to("aws2-ec2://instance?operation=describeInstances")
+ from("timer:quarkus-athena?repeatCount=1")
+ .to("aws2-athena://cluster?operation=listQueryExecutions")
.to("log:sf?showAll=true");
from("timer:quarkus-cw?repeatCount=1")
@@ -38,12 +38,9 @@ public class CamelRoute extends RouteBuilder {
.to("aws2-cw://test")
.to("log:sf?showAll=true");
- from("timer:quarkus-translate?repeatCount=1")
- .setHeader(Translate2Constants.SOURCE_LANGUAGE, constant(Translate2LanguageEnum.ITALIAN))
- .setHeader(Translate2Constants.TARGET_LANGUAGE, constant(Translate2LanguageEnum.GERMAN))
- .setBody(constant("Ciao"))
- .to("aws2-translate://cluster?operation=translateText")
- .log("Translation: ${body}");
+ from("timer:quarkus-ec2?repeatCount=1")
+ .to("aws2-ec2://instance?operation=describeInstances")
+ .to("log:sf?showAll=true");
from("timer:quarkus-ecs?repeatCount=1")
.to("aws2-ecs://cluster?operation=listClusters")
@@ -54,6 +51,10 @@ public class CamelRoute extends RouteBuilder {
.to("aws2-eks://cluster")
.to("log:sf?showAll=true");
+ from("timer:quarkus-eventbridge?repeatCount=1")
+ .to("aws2-eventbridge://default?operation=listRules")
+ .to("log:sf?showAll=true");
+
from("timer:quarkus-iam?repeatCount=1")
.to("aws2-iam://cluster?operation=listAccessKeys")
.to("log:sf?showAll=true");
@@ -70,21 +71,16 @@ public class CamelRoute extends RouteBuilder {
.to("aws2-msk://cluster?operation=listClusters")
.to("log:sf?showAll=true");
- from("timer:quarkus-athena?repeatCount=1")
- .to("aws2-athena://cluster?operation=listQueryExecutions")
- .to("log:sf?showAll=true");
-
- from("timer:quarkus-lambda?repeatCount=1")
- .to("aws2-lambda://cluster?operation=listFunctions")
- .to("log:sf?showAll=true");
-
from("timer:quarkus-sts?repeatCount=1")
.to("aws2-sts://myaccount?operation=getSessionToken")
.to("log:sf?showAll=true");
- from("timer:quarkus-eventbridge?repeatCount=1")
- .to("aws2-eventbridge://default?operation=listRules")
- .to("log:sf?showAll=true");
+ from("timer:quarkus-translate?repeatCount=1")
+ .setHeader(Translate2Constants.SOURCE_LANGUAGE, constant(Translate2LanguageEnum.ITALIAN))
+ .setHeader(Translate2Constants.TARGET_LANGUAGE, constant(Translate2LanguageEnum.GERMAN))
+ .setBody(constant("Ciao"))
+ .to("aws2-translate://cluster?operation=translateText")
+ .log("Translation: ${body}");
}