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/08/03 13:05:11 UTC
[camel] branch main updated: (chores) camel-xmpp: disable unsupported tests on Github (#10978)
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
The following commit(s) were added to refs/heads/main by this push:
new a772a4e9eb0 (chores) camel-xmpp: disable unsupported tests on Github (#10978)
a772a4e9eb0 is described below
commit a772a4e9eb01b3fff2312ce840210868aab7b18b
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Thu Aug 3 15:05:04 2023 +0200
(chores) camel-xmpp: disable unsupported tests on Github (#10978)
---
.../org/apache/camel/component/xmpp/XmppDeferredConnectionIT.java | 4 +++-
.../apache/camel/component/xmpp/integration/XmppMultiUserChatIT.java | 3 +++
.../camel/component/xmpp/integration/XmppProducerConcurrentIT.java | 3 +++
.../org/apache/camel/component/xmpp/integration/XmppRouteChatIT.java | 3 +++
.../java/org/apache/camel/component/xmpp/integration/XmppRouteIT.java | 3 +++
.../xmpp/integration/XmppRouteMultipleProducersSingleConsumerIT.java | 3 +++
6 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionIT.java b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionIT.java
index cc7e7118236..c9db21ac461 100644
--- a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionIT.java
+++ b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/XmppDeferredConnectionIT.java
@@ -21,6 +21,7 @@ import java.io.IOException;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -29,7 +30,8 @@ import org.slf4j.LoggerFactory;
* the server is not available upon route initialization. Also verify that these endpoints will then deliver messages as
* expected.
*/
-
+@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com",
+ disabledReason = "Github environment has trouble running the XMPP test container and/or component")
public class XmppDeferredConnectionIT extends XmppBaseContainerTest {
private static final Logger LOG = LoggerFactory.getLogger(XmppDeferredConnectionIT.class);
diff --git a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppMultiUserChatIT.java b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppMultiUserChatIT.java
index 7b05d5c24da..69d3cda6812 100644
--- a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppMultiUserChatIT.java
+++ b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppMultiUserChatIT.java
@@ -21,7 +21,10 @@ import java.util.concurrent.TimeUnit;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
+@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com",
+ disabledReason = "Github environment has trouble running the XMPP test container and/or component")
class XmppMultiUserChatIT extends XmppBaseIT {
private static final String BODY_1 = "the first message";
diff --git a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppProducerConcurrentIT.java b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppProducerConcurrentIT.java
index 5ba3d512216..9bcea0a2e03 100644
--- a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppProducerConcurrentIT.java
+++ b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppProducerConcurrentIT.java
@@ -22,9 +22,12 @@ import java.util.concurrent.Executors;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import static org.apache.camel.test.junit5.TestSupport.body;
+@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com",
+ disabledReason = "Github environment has trouble running the XMPP test container and/or component")
public class XmppProducerConcurrentIT extends XmppBaseIT {
@Test
diff --git a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteChatIT.java b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteChatIT.java
index e77142399da..4d93016be42 100644
--- a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteChatIT.java
+++ b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteChatIT.java
@@ -19,7 +19,10 @@ package org.apache.camel.component.xmpp.integration;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
+@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com",
+ disabledReason = "Github environment has trouble running the XMPP test container and/or component")
public class XmppRouteChatIT extends XmppBaseIT {
protected MockEndpoint consumerEndpoint;
diff --git a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteIT.java b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteIT.java
index aad34002902..8b9d4a95ddc 100644
--- a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteIT.java
+++ b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteIT.java
@@ -25,6 +25,7 @@ import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.xmpp.XmppMessage;
import org.jivesoftware.smack.packet.Message;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -32,6 +33,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
+@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com",
+ disabledReason = "Github environment has trouble running the XMPP test container and/or component")
public class XmppRouteIT extends XmppBaseIT {
private static final Logger LOG = LoggerFactory.getLogger(XmppRouteIT.class);
diff --git a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteMultipleProducersSingleConsumerIT.java b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteMultipleProducersSingleConsumerIT.java
index 04b6fd2f54d..4fd43234bae 100644
--- a/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteMultipleProducersSingleConsumerIT.java
+++ b/components/camel-xmpp/src/test/java/org/apache/camel/component/xmpp/integration/XmppRouteMultipleProducersSingleConsumerIT.java
@@ -20,7 +20,10 @@ import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.component.xmpp.XmppConstants;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
+@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com",
+ disabledReason = "Github environment has trouble running the XMPP test container and/or component")
public class XmppRouteMultipleProducersSingleConsumerIT extends XmppBaseIT {
protected MockEndpoint goodEndpoint;
protected MockEndpoint badEndpoint;