You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/08/05 12:20:02 UTC

[camel] 02/02: (chores) camel-kafka: defaults to running the tests with Kafka 3.x

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

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

commit 91942ca36de48e06f201c25994f594ee3ce2e061
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Aug 5 11:16:51 2022 +0200

    (chores) camel-kafka: defaults to running the tests with Kafka 3.x
    
    Also, disable Kafka 2.x backwards compatibility tests on ARM because there are no Kafka 2.x images for this architecture
---
 components/camel-kafka/pom.xml | 60 +++++++++++++++++++++++++++++-------------
 1 file changed, 42 insertions(+), 18 deletions(-)

diff --git a/components/camel-kafka/pom.xml b/components/camel-kafka/pom.xml
index 6f56ef02ec0..b25d7acb729 100644
--- a/components/camel-kafka/pom.xml
+++ b/components/camel-kafka/pom.xml
@@ -17,7 +17,8 @@
     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/maven-v4_0_0.xsd">
+<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/maven-v4_0_0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
@@ -135,24 +136,47 @@
                 <configuration>
                     <reuseForks>true</reuseForks>
                 </configuration>
-                <executions>
-                    <execution>
-                        <id>kafka-3</id>
-                        <configuration>
-                            <systemPropertyVariables>
-                                <kafka.instance.type>local-kafka3-container</kafka.instance.type>
-                            </systemPropertyVariables>
-                            <reuseForks>true</reuseForks>
-                            <reportNameSuffix>kafka-3</reportNameSuffix>
-                        </configuration>
-                        <goals>
-                            <goal>integration-test</goal>
-                            <goal>verify</goal>
-                        </goals>
-                    </execution>
-                </executions>
-
             </plugin>
         </plugins>
     </build>
+
+    <profiles>
+        <profile>
+            <id>arm</id>
+            <activation>
+                <os>
+                    <arch>!aarch64</arch>
+                </os>
+            </activation>
+
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-failsafe-plugin</artifactId>
+                        <configuration>
+                            <reuseForks>true</reuseForks>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>kafka-2</id>
+                                <configuration>
+                                    <skipITs>${isKafkaCompatible}</skipITs>
+                                    <systemPropertyVariables>
+                                        <kafka.instance.type>local-kafka2-container</kafka.instance.type>
+                                    </systemPropertyVariables>
+                                    <reuseForks>true</reuseForks>
+                                    <reportNameSuffix>kafka-2</reportNameSuffix>
+                                </configuration>
+                                <goals>
+                                    <goal>integration-test</goal>
+                                    <goal>verify</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>