This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 2dca2609d9 Skip Aws2SqsTest.sqsKmsEncryption test via an execution 
condition
2dca2609d9 is described below

commit 2dca2609d9f429b1a2736f8886af68a317e21d53
Author: James Netherton <[email protected]>
AuthorDate: Tue Sep 22 12:25:57 2026 +0100

    Skip Aws2SqsTest.sqsKmsEncryption test via an execution condition
---
 .../org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/integration-test-groups/aws2/aws2-sqs/src/test/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsTest.java
 
b/integration-test-groups/aws2/aws2-sqs/src/test/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsTest.java
index 21ab633f6a..55cc831fd7 100644
--- 
a/integration-test-groups/aws2/aws2-sqs/src/test/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsTest.java
+++ 
b/integration-test-groups/aws2/aws2-sqs/src/test/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsTest.java
@@ -34,6 +34,8 @@ import io.restassured.RestAssured;
 import io.restassured.http.ContentType;
 import io.restassured.response.ExtractableResponse;
 import io.restassured.response.Response;
+import org.apache.camel.quarkus.test.EnabledIf;
+import org.apache.camel.quarkus.test.mock.backend.MockBackendEnabled;
 import org.apache.camel.quarkus.test.support.aws2.Aws2MockBackend;
 import org.apache.camel.quarkus.test.support.aws2.Aws2TestResource;
 import org.apache.camel.quarkus.test.support.aws2.BaseAWs2TestSupport;
@@ -43,7 +45,6 @@ import org.eclipse.microprofile.config.ConfigProvider;
 import org.jboss.logging.Logger;
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Assumptions;
 import org.junit.jupiter.api.Test;
 
 import static org.hamcrest.Matchers.anyOf;
@@ -299,10 +300,9 @@ class Aws2SqsTest extends BaseAWs2TestSupport {
         Assertions.assertTrue(received.containsAll(messages));
     }
 
+    @EnabledIf(MockBackendEnabled.class)
     @Test
     void sqsKmsEncryption() {
-        Assumptions.assumeTrue(mockBackend, "KMS test only runs on mock 
backend");
-
         final String kmsQueueName = "camel-quarkus-kms-"
                 + 
RandomStringUtils.secure().nextAlphanumeric(10).toLowerCase(Locale.ROOT);
         final String msg = "kms-msg-" + 
UUID.randomUUID().toString().replace("-", "");

Reply via email to