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 1b8703e0a222e06c74d80a81c2df6ca4d6978690 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Mon May 15 13:24:56 2023 +0200 (chores) camel-pulsar: cleanup disabling tests on platforms where it's not available --- Jenkinsfile.ppc64le | 2 +- components/camel-pulsar/pom.xml | 15 +++++++++++++++ ...mentTest.java => PulsarConsumerAcknowledgementIT.java} | 6 +++--- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile.ppc64le b/Jenkinsfile.ppc64le index 6e3784ebedf..3ab4361d42f 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-djl,!components/camel-pulsar,!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-djl,!components/camel-xmpp,!components/camel-google/camel-google-pubsub,!components/camel-hdfs,!components/camel-zookeeper,!components/camel-zookeeper-master'" } } post { diff --git a/components/camel-pulsar/pom.xml b/components/camel-pulsar/pom.xml index f3acfcd2cac..3314f27f451 100644 --- a/components/camel-pulsar/pom.xml +++ b/components/camel-pulsar/pom.xml @@ -111,4 +111,19 @@ </plugin> </plugins> </build> + + <profiles> + <profile> + <!-- Pulsar container is only available for Linux 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-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarConsumerAcknowledgementTest.java b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarConsumerAcknowledgementIT.java similarity index 98% rename from components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarConsumerAcknowledgementTest.java rename to components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarConsumerAcknowledgementIT.java index eec6d715a13..46ece0530f2 100644 --- a/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarConsumerAcknowledgementTest.java +++ b/components/camel-pulsar/src/test/java/org/apache/camel/component/pulsar/PulsarConsumerAcknowledgementIT.java @@ -43,12 +43,12 @@ import org.junit.jupiter.api.extension.RegisterExtension; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class PulsarConsumerAcknowledgementTest extends CamelTestSupport { +public class PulsarConsumerAcknowledgementIT extends CamelTestSupport { @RegisterExtension static PulsarService service = PulsarServiceFactory.createService(); - private static final Logger LOGGER = LoggerFactory.getLogger(PulsarConsumerAcknowledgementTest.class); + private static final Logger LOGGER = LoggerFactory.getLogger(PulsarConsumerAcknowledgementIT.class); private static final String TOPIC_URI = "persistent://public/default/camel-topic-"; private static int topicId; @@ -71,7 +71,7 @@ public class PulsarConsumerAcknowledgementTest extends CamelTestSupport { context.removeRoute("myRoute"); String producerName = this.getClass().getSimpleName() + TestUtils.randomWithRange(1, 100); - String topicUri = PulsarConsumerAcknowledgementTest.TOPIC_URI + ++topicId; + String topicUri = PulsarConsumerAcknowledgementIT.TOPIC_URI + ++topicId; producer = givenPulsarClient().newProducer(Schema.STRING).producerName(producerName).topic(topicUri).create(); from = context.getEndpoint("pulsar:" + topicUri + "?numberOfConsumers=1&subscriptionType=Exclusive"
