Skip to content

Commit

Permalink
Merge pull request #43543 from zakkak/2024-09-26-skip-kafka-oauth-wit…
Browse files Browse the repository at this point in the history
…h-graalvm-24.1

Skip kafka-oauth-keycloak test with GraalVM >= 24.1
  • Loading branch information
zakkak authored Sep 27, 2024
2 parents 4d78bff + f06e771 commit 428bd9e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public static final class Version implements Comparable<Version> {
public static final Version VERSION_23_0_0 = new Version("GraalVM 23.0.0", "23.0.0", "17", Distribution.GRAALVM);
public static final Version VERSION_23_1_0 = new Version("GraalVM 23.1.0", "23.1.0", "21", Distribution.GRAALVM);
public static final Version VERSION_24_0_0 = new Version("GraalVM 24.0.0", "24.0.0", "22", Distribution.GRAALVM);
public static final Version VERSION_24_0_999 = new Version("GraalVM 24.0.999", "24.0.999", "22", Distribution.GRAALVM);

/**
* The minimum version of GraalVM supported by Quarkus.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import org.junit.jupiter.api.Test;

import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.junit.DisableIfBuiltWithGraalVMNewerThan;
import io.quarkus.test.junit.GraalVMVersion;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.common.mapper.TypeRef;

Expand All @@ -20,6 +22,7 @@ public class KafkaOauthTest {
};

@Test
@DisableIfBuiltWithGraalVMNewerThan(GraalVMVersion.GRAALVM_24_0_999) // See https://github.com/quarkusio/quarkus/issues/39634
public void test() {
await().untilAsserted(() -> Assertions.assertEquals(2, get("/kafka").as(TYPE_REF).size()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/**
* Used to signal that a test class or method should be disabled if the version of GraalVM used to build the native binary
* under test was older than the supplied version.
* under test was newer than the supplied version.
*
* This annotation should only be used on a test classes annotated with {@link QuarkusIntegrationTest}.
* If it is used on other test classes, it will have no effect.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

public enum GraalVMVersion {
GRAALVM_23_1_0(GraalVM.Version.VERSION_23_1_0),
GRAALVM_24_0_0(GraalVM.Version.VERSION_24_0_0);
GRAALVM_24_0_0(GraalVM.Version.VERSION_24_0_0),
GRAALVM_24_0_999(GraalVM.Version.VERSION_24_0_999);

private final GraalVM.Version version;

Expand Down

0 comments on commit 428bd9e

Please sign in to comment.