diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/AppServerTestEnricher.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/AppServerTestEnricher.java index 6a694479a2..419c8a9c9e 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/AppServerTestEnricher.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/AppServerTestEnricher.java @@ -316,6 +316,10 @@ public class AppServerTestEnricher { return CURRENT_APP_SERVER.contains("fuse"); } + public static boolean isRemoteAppServer() { + return CURRENT_APP_SERVER.contains("remote"); + } + private boolean isJBossBased() { return testContext.getAppServerInfo().isJBossBased(); } diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/decider/AuthServerExcludeExecutionDecider.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/decider/AuthServerExcludeExecutionDecider.java index e2fbc1a191..ba1ec5f148 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/decider/AuthServerExcludeExecutionDecider.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/arquillian/decider/AuthServerExcludeExecutionDecider.java @@ -23,6 +23,7 @@ import org.jboss.arquillian.test.spi.execution.ExecutionDecision; import org.jboss.arquillian.test.spi.execution.TestExecutionDecider; import org.jboss.arquillian.core.api.Instance; import org.jboss.arquillian.core.api.annotation.Inject; +import org.keycloak.testsuite.arquillian.AppServerTestEnricher; import org.keycloak.testsuite.arquillian.AuthServerTestEnricher; import org.keycloak.testsuite.arquillian.TestContext; import org.keycloak.testsuite.arquillian.annotation.AuthServerContainerExclude; @@ -39,6 +40,9 @@ public class AuthServerExcludeExecutionDecider implements TestExecutionDecider { @Override public ExecutionDecision decide(Method method) { + if (AppServerTestEnricher.isRemoteAppServer()) { + return ExecutionDecision.execute(); + } TestContext testContext = testContextInstance.get(); if (method.isAnnotationPresent(AuthServerContainerExclude.class)) {