Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move test support modules to integration-tests-support folder #6833

Merged
merged 3 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions integration-test-groups/http/http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<dependencies>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-tests-http-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-http</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down Expand Up @@ -74,7 +74,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-tests-http-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-http</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions integration-test-groups/http/netty-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<dependencies>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-tests-http-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-http</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
Expand Down Expand Up @@ -77,7 +77,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-tests-http-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-http</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Expand Down
1 change: 0 additions & 1 deletion integration-test-groups/http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

<modules>
<!-- extensions a..z; do not remove this comment, it is important when sorting via mvn process-resources -Pformat -->
<module>common</module>
<module>http</module>
<module>netty-http</module>
<module>vertx-http</module>
Expand Down
4 changes: 2 additions & 2 deletions integration-test-groups/http/vertx-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<dependencies>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-tests-http-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-http</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
Expand Down Expand Up @@ -65,7 +65,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-tests-http-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-http</artifactId>
<scope>test</scope>
<type>test-jar</type>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

<parent>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-build-parent-it</artifactId>
<artifactId>camel-quarkus-integration-tests-support</artifactId>
<version>3.17.0-SNAPSHOT</version>
<relativePath>../../../poms/build-parent-it/pom.xml</relativePath>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>camel-quarkus-integration-tests-http-common</artifactId>
<name>Camel Quarkus :: Integration Tests :: HTTP :: Common</name>
<artifactId>camel-quarkus-integration-tests-support-http</artifactId>
<name>Camel Quarkus :: Integration Tests :: Support :: HTTP</name>

<dependencies>
<dependency>
Expand Down Expand Up @@ -76,16 +76,40 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.platform.version}</version>
<executions>
<execution>
<id>build</id>
<phase />
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
<executions>
<execution>
<id>default-test</id>
<phase />
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>virtualDependencies</id>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Common Messaging Extension Tests
= Common Messaging Extension Tests

This module contains a set of common integration tests that can be reused to test different messaging component extensions and JMS clients.

## Module structure
== Module structure
The module contains sub-modules which are described as follows.

### common
=== `common`
The place to add routes, JAX-RS resources & test cases common to *all* messaging component extensions.

For the routes to be configured in a generic way, the component scheme to use is dynamically determined and exposed as an injectable CDI bean like:
Expand All @@ -18,15 +18,15 @@ ComponentScheme scheme;

Which can then be used in a route to prefix the component scheme (either with String concatenation or `fromF` / `toF`).

### jms
=== `jms`

The place to add routes, JAX-RS resources & test cases common to messaging component extensions that extend the `camel-jms` component.

### sjms
=== `sjms`

The place to add routes, JAX-RS resources & test cases common to messaging component extensions that extend the `camel-sjms` component (currently only `camel-sjms2`).

## Usage
== Usage

To use the common tests in a integration test module, first add the required dependencies.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-test-messaging</artifactId>
<artifactId>camel-quarkus-integration-tests-support-messaging</artifactId>
<version>3.17.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>camel-quarkus-integration-test-messaging-common</artifactId>
<name>Camel Quarkus :: Integration Tests :: Messaging Common</name>
<artifactId>camel-quarkus-integration-tests-support-messaging-common</artifactId>
<name>Camel Quarkus :: Integration Tests :: Support :: Messaging :: Common</name>
<description>Integration tests for Camel Quarkus Messaging Common</description>

<dependencies>
Expand Down Expand Up @@ -76,22 +77,6 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<executions>
<execution>
<id>make-index</id>
<goals>
<goal>jandex</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>virtualDependencies</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-test-messaging</artifactId>
<artifactId>camel-quarkus-integration-tests-support-messaging</artifactId>
<version>3.17.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>camel-quarkus-integration-test-messaging-jms</artifactId>
<name>Camel Quarkus :: Integration Tests :: Messaging JMS</name>
<artifactId>camel-quarkus-integration-tests-support-messaging-jms</artifactId>
<name>Camel Quarkus :: Integration Tests :: Support :: Messaging :: JMS</name>
<description>Integration tests for Camel Quarkus Messaging JMS</description>

<dependencies>
Expand All @@ -44,7 +45,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-test-messaging-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-messaging-common</artifactId>
</dependency>

<!-- test dependencies -->
Expand All @@ -60,29 +61,12 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-test-messaging-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-messaging-common</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<executions>
<execution>
<id>make-index</id>
<goals>
<goal>jandex</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>virtualDependencies</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-build-parent-it</artifactId>
<artifactId>camel-quarkus-integration-tests-support</artifactId>
<version>3.17.0-SNAPSHOT</version>
<relativePath>../../poms/build-parent-it/pom.xml</relativePath>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>camel-quarkus-integration-test-messaging</artifactId>
<name>Camel Quarkus :: Integration Tests :: Messaging</name>
<artifactId>camel-quarkus-integration-tests-support-messaging</artifactId>
<name>Camel Quarkus :: Integration Tests :: Support :: Messaging</name>
<description>Integration tests for Camel Quarkus Messaging extensions</description>
<packaging>pom</packaging>

Expand All @@ -39,6 +39,18 @@

<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<executions>
<execution>
<id>make-index</id>
<goals>
<goal>jandex</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
Expand All @@ -60,6 +72,17 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-test-messaging</artifactId>
<artifactId>camel-quarkus-integration-tests-support-messaging</artifactId>
<version>3.17.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>camel-quarkus-integration-test-messaging-sjms</artifactId>
<name>Camel Quarkus :: Integration Tests :: Messaging SJMS</name>
<artifactId>camel-quarkus-integration-tests-support-messaging-sjms</artifactId>
<name>Camel Quarkus :: Integration Tests :: Support :: Messaging :: SJMS</name>
<description>Integration tests for Camel Quarkus Messaging SJMS</description>

<dependencies>
Expand All @@ -44,7 +45,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-test-messaging-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-messaging-common</artifactId>
</dependency>

<!-- test dependencies -->
Expand All @@ -60,29 +61,12 @@
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-integration-test-messaging-common</artifactId>
<artifactId>camel-quarkus-integration-tests-support-messaging-common</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<executions>
<execution>
<id>make-index</id>
<goals>
<goal>jandex</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>virtualDependencies</id>
Expand Down
2 changes: 2 additions & 0 deletions integration-tests-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@
<module>custom-kamelet-resource</module>
<module>google</module>
<module>grpc</module>
<module>http</module>
<module>jdbc</module>
<module>kafka</module>
<module>messaging</module>
<module>mongodb</module>
<module>process-executor-support</module>
<module>splunk</module>
Expand Down
Loading