You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2026/09/10 06:21:56 UTC

(camel-quarkus) 01/02: Remove AWS2 integration tests superseded by integration-test-groups

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 543660053ffd5ef9e9e3f086915cc20c232516dc
Author: James Netherton <ja...@gmail.com>
AuthorDate: Wed Sep 9 07:16:02 2026 +0100

    Remove AWS2 integration tests superseded by integration-test-groups
    
    The integration-tests/aws2 module is a build-time smoke test with no
    actual tests. Its coverage for cw, ec2, ecs, eks, iam, kms, mq, msk and
    sts is now duplicated by the corresponding integration-test-groups/aws2
    modules, which exercise those components with real assertions.
    
    Drop the redundant extensions, routes and configuration, leaving only
    the components that have no coverage elsewhere. Also removes dead
    aws2-sns and aws2-lambda configuration for components that were not on
    the module classpath.
    
    Co-Authored-By: Claude Opus 5 (1M context) <no...@anthropic.com>
---
 integration-tests/aws2/pom.xml                     | 153 ---------------------
 .../camel/quarkus/component/aws2/CamelRoute.java   |  42 ------
 .../aws2/src/main/resources/application.properties |  44 ------
 3 files changed, 239 deletions(-)

diff --git a/integration-tests/aws2/pom.xml b/integration-tests/aws2/pom.xml
index b0ba924d69..2c7d2c9e96 100644
--- a/integration-tests/aws2/pom.xml
+++ b/integration-tests/aws2/pom.xml
@@ -40,46 +40,10 @@
             <artifactId>camel-quarkus-aws2-athena</artifactId>
         </dependency>
         -->
-        <dependency>
-            <groupId>org.apache.camel.quarkus</groupId>
-            <artifactId>camel-quarkus-aws2-cw</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel.quarkus</groupId>
-            <artifactId>camel-quarkus-aws2-ec2</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel.quarkus</groupId>
-            <artifactId>camel-quarkus-aws2-ecs</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel.quarkus</groupId>
-            <artifactId>camel-quarkus-aws2-eks</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-aws2-eventbridge</artifactId>
         </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-kms</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel.quarkus</groupId>
-            <artifactId>camel-quarkus-aws2-mq</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel.quarkus</groupId>
-            <artifactId>camel-quarkus-aws2-msk</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel.quarkus</groupId>
-            <artifactId>camel-quarkus-aws2-sts</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-aws2-translate</artifactId>
@@ -139,58 +103,6 @@
             </activation>
             <dependencies>
                 <!-- The following dependencies guarantee that this module is built after them. You can update them by running `mvn process-resources -Pformat -N` from the source tree root directory -->
-                <dependency>
-                    <groupId>org.apache.camel.quarkus</groupId>
-                    <artifactId>camel-quarkus-aws2-cw-deployment</artifactId>
-                    <version>${project.version}</version>
-                    <type>pom</type>
-                    <scope>test</scope>
-                    <exclusions>
-                        <exclusion>
-                            <groupId>*</groupId>
-                            <artifactId>*</artifactId>
-                        </exclusion>
-                    </exclusions>
-                </dependency>
-                <dependency>
-                    <groupId>org.apache.camel.quarkus</groupId>
-                    <artifactId>camel-quarkus-aws2-ec2-deployment</artifactId>
-                    <version>${project.version}</version>
-                    <type>pom</type>
-                    <scope>test</scope>
-                    <exclusions>
-                        <exclusion>
-                            <groupId>*</groupId>
-                            <artifactId>*</artifactId>
-                        </exclusion>
-                    </exclusions>
-                </dependency>
-                <dependency>
-                    <groupId>org.apache.camel.quarkus</groupId>
-                    <artifactId>camel-quarkus-aws2-ecs-deployment</artifactId>
-                    <version>${project.version}</version>
-                    <type>pom</type>
-                    <scope>test</scope>
-                    <exclusions>
-                        <exclusion>
-                            <groupId>*</groupId>
-                            <artifactId>*</artifactId>
-                        </exclusion>
-                    </exclusions>
-                </dependency>
-                <dependency>
-                    <groupId>org.apache.camel.quarkus</groupId>
-                    <artifactId>camel-quarkus-aws2-eks-deployment</artifactId>
-                    <version>${project.version}</version>
-                    <type>pom</type>
-                    <scope>test</scope>
-                    <exclusions>
-                        <exclusion>
-                            <groupId>*</groupId>
-                            <artifactId>*</artifactId>
-                        </exclusion>
-                    </exclusions>
-                </dependency>
                 <dependency>
                     <groupId>org.apache.camel.quarkus</groupId>
                     <artifactId>camel-quarkus-aws2-eventbridge-deployment</artifactId>
@@ -204,71 +116,6 @@
                         </exclusion>
                     </exclusions>
                 </dependency>
-                <dependency>
-                    <groupId>org.apache.camel.quarkus</groupId>
-                    <artifactId>camel-quarkus-aws2-iam-deployment</artifactId>
-                    <version>${project.version}</version>
-                    <type>pom</type>
-                    <scope>test</scope>
-                    <exclusions>
-                        <exclusion>
-                            <groupId>*</groupId>
-                            <artifactId>*</artifactId>
-                        </exclusion>
-                    </exclusions>
-                </dependency>
-                <dependency>
-                    <groupId>org.apache.camel.quarkus</groupId>
-                    <artifactId>camel-quarkus-aws2-kms-deployment</artifactId>
-                    <version>${project.version}</version>
-                    <type>pom</type>
-                    <scope>test</scope>
-                    <exclusions>
-                        <exclusion>
-                            <groupId>*</groupId>
-                            <artifactId>*</artifactId>
-                        </exclusion>
-                    </exclusions>
-                </dependency>
-                <dependency>
-                    <groupId>org.apache.camel.quarkus</groupId>
-                    <artifactId>camel-quarkus-aws2-mq-deployment</artifactId>
-                    <version>${project.version}</version>
-                    <type>pom</type>
-                    <scope>test</scope>
-                    <exclusions>
-                        <exclusion>
-                            <groupId>*</groupId>
-                            <artifactId>*</artifactId>
-                        </exclusion>
-                    </exclusions>
-                </dependency>
-                <dependency>
-                    <groupId>org.apache.camel.quarkus</groupId>
-                    <artifactId>camel-quarkus-aws2-msk-deployment</artifactId>
-                    <version>${project.version}</version>
-                    <type>pom</type>
-                    <scope>test</scope>
-                    <exclusions>
-                        <exclusion>
-                            <groupId>*</groupId>
-                            <artifactId>*</artifactId>
-                        </exclusion>
-                    </exclusions>
-                </dependency>
-                <dependency>
-                    <groupId>org.apache.camel.quarkus</groupId>
-                    <artifactId>camel-quarkus-aws2-sts-deployment</artifactId>
-                    <version>${project.version}</version>
-                    <type>pom</type>
-                    <scope>test</scope>
-                    <exclusions>
-                        <exclusion>
-                            <groupId>*</groupId>
-                            <artifactId>*</artifactId>
-                        </exclusion>
-                    </exclusions>
-                </dependency>
                 <dependency>
                     <groupId>org.apache.camel.quarkus</groupId>
                     <artifactId>camel-quarkus-aws2-translate-deployment</artifactId>
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 f8eb6a4bbf..6da0883f60 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
@@ -17,7 +17,6 @@
 package org.apache.camel.quarkus.component.aws2;
 
 import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.aws2.cw.Cw2Constants;
 import org.apache.camel.component.aws2.translate.Translate2Constants;
 import org.apache.camel.component.aws2.translate.Translate2LanguageEnum;
 
@@ -30,51 +29,10 @@ public class CamelRoute extends RouteBuilder {
         //                .to("aws2-athena://cluster?operation=listQueryExecutions")
         //                .to("log:sf?showAll=true");
 
-        from("timer:quarkus-cw?repeatCount=1")
-                .setBody(constant("Quarkus is great!"))
-                .setHeader(Cw2Constants.METRIC_NAME, constant("ExchangesCompleted"))
-                .setHeader(Cw2Constants.METRIC_VALUE, constant("2.0"))
-                .setHeader(Cw2Constants.METRIC_UNIT, constant("Count"))
-                .to("aws2-cw://test")
-                .to("log:sf?showAll=true");
-
-        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")
-                .to("log:sf?showAll=true");
-
-        from("timer:quarkus-eks?repeatCount=1")
-                .setHeader("CamelAwsEKSOperation", constant("listClusters"))
-                .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");
-
-        from("timer:quarkus-kms?repeatCount=1")
-                .setHeader("CamelAwsKMSOperation", constant("listKeys"))
-                .to("aws2-kms://cluster");
-
-        from("timer:quarkus-mq?repeatCount=1")
-                .to("aws2-mq://test?operation=listBrokers")
-                .to("log:sf?showAll=true");
-
-        from("timer:quarkus-msk?repeatCount=1")
-                .to("aws2-msk://cluster?operation=listClusters")
-                .to("log:sf?showAll=true");
-
-        from("timer:quarkus-sts?repeatCount=1")
-                .to("aws2-sts://myaccount?operation=getSessionToken")
-                .to("log:sf?showAll=true");
-
         // TODO: Restore these - https://github.com/apache/camel-quarkus/issues/8912
         //        from("timer:quarkus-bedrock?repeatCount=1")
         //                .to("aws-bedrock://myaccount?operation=invokeTextModel")
diff --git a/integration-tests/aws2/src/main/resources/application.properties b/integration-tests/aws2/src/main/resources/application.properties
index 69b5294c57..4092b19d2f 100644
--- a/integration-tests/aws2/src/main/resources/application.properties
+++ b/integration-tests/aws2/src/main/resources/application.properties
@@ -18,58 +18,14 @@
 #
 # Camel :: AWS2 options
 #
-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-eventbridge.access-key={{env:AWS_ACCESS_KEY}}
 camel.component.aws2-eventbridge.secret-key={{env:AWS_SECRET_KEY}}
 camel.component.aws2-eventbridge.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.component.aws2-kms.access-key={{env:AWS_ACCESS_KEY}}
-camel.component.aws2-kms.secret-key={{env:AWS_SECRET_KEY}}
-camel.component.aws2-kms.region={{env:AWS_REGION}}
-
-camel.component.aws2-lambda.access-key={{env:AWS_ACCESS_KEY}}
-camel.component.aws2-lambda.secret-key={{env:AWS_SECRET_KEY}}
-camel.component.aws2-lambda.region={{env:AWS_REGION}}
-
-camel.component.aws2-msk.access-key={{env:AWS_ACCESS_KEY}}
-camel.component.aws2-msk.secret-key={{env:AWS_SECRET_KEY}}
-camel.component.aws2-msk.region={{env:AWS_REGION}}
-
-camel.component.aws2-mq.access-key={{env:AWS_ACCESS_KEY}}
-camel.component.aws2-mq.secret-key={{env:AWS_SECRET_KEY}}
-camel.component.aws2-mq.region={{env:AWS_REGION}}
-
 camel.component.aws2-athena.access-key={{env:AWS_ACCESS_KEY}}
 camel.component.aws2-athena.secret-key={{env:AWS_SECRET_KEY}}
 camel.component.aws2-athena.region={{env:AWS_REGION}}
-
-camel.component.aws2-sts.access-key={{env:AWS_ACCESS_KEY}}
-camel.component.aws2-sts.secret-key={{env:AWS_SECRET_KEY}}
-camel.component.aws2-sts.region={{env:AWS_REGION}}