Ignore particular legacy clustering tests

Revert once https://github.com/keycloak/keycloak/issues/19834 issue is resolved
This commit is contained in:
Martin Bartoš 2023-04-21 10:04:43 +02:00 committed by Václav Muzikář
parent 79178b5a23
commit b87b70a35d
2 changed files with 8 additions and 0 deletions

View file

@ -64,4 +64,9 @@ public class ContainerAssume {
Assume.assumeTrue("Only works on auth-server-quarkus",
AuthServerTestEnricher.AUTH_SERVER_CONTAINER.startsWith("auth-server-quarkus"));
}
public static void assumeNotAuthServerQuarkusCluster() {
Assume.assumeTrue("Doesn't work on auth-server-cluster-quarkus",
AuthServerTestEnricher.AUTH_SERVER_CONTAINER.startsWith("auth-server-cluster-quarkus"));
}
}

View file

@ -83,6 +83,9 @@ public abstract class AbstractAdapterClusteredTest extends AbstractServletsAdapt
@BeforeClass
public static void checkPropertiesSet() {
// Remove once https://github.com/keycloak/keycloak/issues/19834 is resolved
ContainerAssume.assumeNotAuthServerQuarkusCluster();
Assume.assumeThat(PORT_OFFSET_NODE_1, not(is(-1)));
Assume.assumeThat(PORT_OFFSET_NODE_2, not(is(-1)));
Assume.assumeThat(PORT_OFFSET_NODE_REVPROXY, not(is(-1)));