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 2023/05/15 15:18:17 UTC
[camel] 04/17: (chores) camel-xmpp: cleanup disabling tests on platforms where it's not available
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 7075862de813cbdc43c92493646935bcdd9344da
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon May 15 13:35:28 2023 +0200
(chores) camel-xmpp: cleanup disabling tests on platforms where it's not available
---
Jenkinsfile.ppc64le | 2 +-
components/camel-xmpp/pom.xml | 15 +++++++++++++++
...dConnectionTest.java => XmppDeferredConnectionIT.java} | 4 ++--
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/Jenkinsfile.ppc64le b/Jenkinsfile.ppc64le
index 2825ad5ee9f..6a993d2921b 100644
--- a/Jenkinsfile.ppc64le
+++ b/Jenkinsfile.ppc64le
@@ -85,7 +85,7 @@ pipeline {
steps {
timeout(unit: 'HOURS', time: 7) {
// Skip the test case execution of modules which are either not supported on ppc64le or vendor images are not available for ppc64le.
- sh "./mvnw $MAVEN_PARAMS $MAVEN_TEST_PARAMS $MAVEN_TEST_LIMIT_PARAMS -Darchetype.test.skip -Dmaven.test.failure.ignore=true -Dcheckstyle.skip=true verify -pl '!docs,!components/camel-xmpp,!components/camel-google/camel-google-pubsub,!components/camel-hdfs,!components/camel-zookeeper,!components/camel-zookeeper-master'"
+ sh "./mvnw $MAVEN_PARAMS $MAVEN_TEST_PARAMS $MAVEN_TEST_LIMIT_PARAMS -Darchetype.test.skip -Dmaven.test.failure.ignore=true -Dcheckstyle.skip=true verify -pl '!docs,!components/camel-google/camel-google-pubsub,!components/camel-hdfs,!components/camel-zookeeper,!components/camel-zookeeper-master'"
}
}
post {
diff --git a/components/camel-xmpp/pom.xml b/components/camel-xmpp/pom.xml
index 2be4dd26f5c..ea68da9e40d 100644
--- a/components/camel-xmpp/pom.xml
+++ b/components/camel-xmpp/pom.xml
@@ -104,4 +104,19 @@
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <!-- XMPP container is only available for on x86 64 -->
+ <id>Notx86</id>
+ <activation>
+ <os>
+ <arch>!amd64</arch>
+ </os>
+ </activation>
+ <properties>
+ <skipITs>true</skipITs>
+ </properties>
+ </profile>
+ </profiles>
</project>
diff --git a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionTest.java b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionIT.java
similarity index 97%
rename from components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionTest.java
rename to components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionIT.java
index 9f1abbe82da..cc7e7118236 100644
--- a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionTest.java
+++ b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionIT.java
@@ -30,8 +30,8 @@ import org.slf4j.LoggerFactory;
* expected.
*/
-public class XmppDeferredConnectionTest extends XmppBaseContainerTest {
- private static final Logger LOG = LoggerFactory.getLogger(XmppDeferredConnectionTest.class);
+public class XmppDeferredConnectionIT extends XmppBaseContainerTest {
+ private static final Logger LOG = LoggerFactory.getLogger(XmppDeferredConnectionIT.class);
/**
* Ensures that the XMPP server instance is created and 'stopped' before the camel routes are initialized