diff --git a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/DisabledOnAarch64Native.java b/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/DisabledOnAarch64Native.java deleted file mode 100644 index 2eb2304e9..000000000 --- a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/DisabledOnAarch64Native.java +++ /dev/null @@ -1,21 +0,0 @@ -package io.quarkus.ts.messaging.kafka.reactive.streams; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Inherited; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -import org.junit.jupiter.api.extension.ExtendWith; - -@Inherited -@Target({ ElementType.TYPE, ElementType.METHOD }) -@Retention(RetentionPolicy.RUNTIME) -@ExtendWith(DisabledOnAarch64NativeConditions.class) -public @interface DisabledOnAarch64Native { - - /** - * Why is the annotated test class or test method disabled. - */ - String reason(); -} diff --git a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/DisabledOnAarch64NativeConditions.java b/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/DisabledOnAarch64NativeConditions.java deleted file mode 100644 index 347825dcd..000000000 --- a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/DisabledOnAarch64NativeConditions.java +++ /dev/null @@ -1,21 +0,0 @@ -package io.quarkus.ts.messaging.kafka.reactive.streams; - -import org.junit.jupiter.api.extension.ConditionEvaluationResult; -import org.junit.jupiter.api.extension.ExecutionCondition; -import org.junit.jupiter.api.extension.ExtensionContext; - -import io.quarkus.test.services.quarkus.model.QuarkusProperties; - -public class DisabledOnAarch64NativeConditions implements ExecutionCondition { - - @Override - public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext extensionContext) { - boolean isNative = QuarkusProperties.isNativeEnabled(); - boolean isAarch64 = "true".equals(System.getProperty("ts.arm.missing.services.excludes")); - if (isAarch64 && isNative) { - return ConditionEvaluationResult.disabled("It is running on aarch64 in native mode."); - } else { - return ConditionEvaluationResult.enabled("It is not running on aarch64 in native mode."); - } - } -} diff --git a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OpenShiftAmqStreamsKafkaStreamIT.java b/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OpenShiftAmqStreamsKafkaStreamIT.java index 4316772a7..674767c26 100644 --- a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OpenShiftAmqStreamsKafkaStreamIT.java +++ b/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OpenShiftAmqStreamsKafkaStreamIT.java @@ -6,6 +6,7 @@ import io.quarkus.test.bootstrap.Protocol; import io.quarkus.test.bootstrap.RestService; import io.quarkus.test.scenarios.OpenShiftScenario; +import io.quarkus.test.scenarios.annotations.DisabledOnAarch64Native; import io.quarkus.test.services.KafkaContainer; import io.quarkus.test.services.QuarkusApplication; import io.quarkus.test.services.containers.model.KafkaVendor; diff --git a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OpenShiftStrimziKafkaStreamIT.java b/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OpenShiftStrimziKafkaStreamIT.java index 6baf1e2c6..83373acad 100644 --- a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OpenShiftStrimziKafkaStreamIT.java +++ b/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OpenShiftStrimziKafkaStreamIT.java @@ -1,6 +1,7 @@ package io.quarkus.ts.messaging.kafka.reactive.streams; import io.quarkus.test.scenarios.OpenShiftScenario; +import io.quarkus.test.scenarios.annotations.DisabledOnAarch64Native; @OpenShiftScenario @DisabledOnAarch64Native(reason = "https://issues.redhat.com/browse/QUARKUS-4321") diff --git a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OperatorOpenShiftAmqStreamsKafkaStreamIT.java b/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OperatorOpenShiftAmqStreamsKafkaStreamIT.java index 78ebbc33f..516a2f060 100644 --- a/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OperatorOpenShiftAmqStreamsKafkaStreamIT.java +++ b/messaging/kafka-streams-reactive-messaging/src/test/java/io/quarkus/ts/messaging/kafka/reactive/streams/OperatorOpenShiftAmqStreamsKafkaStreamIT.java @@ -3,6 +3,7 @@ import io.quarkus.test.bootstrap.Protocol; import io.quarkus.test.bootstrap.RestService; import io.quarkus.test.scenarios.OpenShiftScenario; +import io.quarkus.test.scenarios.annotations.DisabledOnAarch64Native; import io.quarkus.test.services.Operator; import io.quarkus.test.services.QuarkusApplication; import io.quarkus.test.services.operator.KafkaInstance;