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

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


The following commit(s) were added to refs/heads/main by this push:
     new 9d38d0df72a6 CAMEL-24290: camel-pqc - run unit tests in parallel 
(#29354)
9d38d0df72a6 is described below

commit 9d38d0df72a6c3967edda6ac7cfb386eebaac029
Author: Adriano Machado <[email protected]>
AuthorDate: Fri Nov 6 15:38:14 2026 -0500

    CAMEL-24290: camel-pqc - run unit tests in parallel (#29354)
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
---
 components/camel-pqc/pom.xml                                        | 1 +
 .../apache/camel/component/pqc/PQCSignatureOnlyKeyStoreTest.java    | 6 ++++--
 .../apache/camel/component/pqc/PQCSignatureSLHDSAKeystoreTest.java  | 6 ++++--
 .../apache/camel/component/pqc/PQCSignatureWithKeyStoreTest.java    | 6 ++++--
 4 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/components/camel-pqc/pom.xml b/components/camel-pqc/pom.xml
index 563f92843db8..88cad4bb827f 100644
--- a/components/camel-pqc/pom.xml
+++ b/components/camel-pqc/pom.xml
@@ -35,6 +35,7 @@
     <properties>
         <skipITs.s390x>true</skipITs.s390x>
         <skipITs.ppc64le>true</skipITs.ppc64le>
+        <camel.surefire.parallel>true</camel.surefire.parallel>
     </properties>
 
     <dependencyManagement>
diff --git 
a/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureOnlyKeyStoreTest.java
 
b/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureOnlyKeyStoreTest.java
index eaced25ce18e..fe8d84d052fc 100644
--- 
a/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureOnlyKeyStoreTest.java
+++ 
b/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureOnlyKeyStoreTest.java
@@ -51,6 +51,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class PQCSignatureOnlyKeyStoreTest extends CamelTestSupport {
 
+    private static final String KEYSTORE_FILE = 
"keystore-signature-only-test.jks";
+
     @EndpointInject("mock:sign")
     protected MockEndpoint resultSign;
 
@@ -82,7 +84,7 @@ public class PQCSignatureOnlyKeyStoreTest extends 
CamelTestSupport {
 
     @AfterAll
     public static void teardown() throws Exception {
-        Files.deleteIfExists(Path.of("keystore.jks"));
+        Files.deleteIfExists(Path.of(KEYSTORE_FILE));
     }
 
     @Test
@@ -135,7 +137,7 @@ public class PQCSignatureOnlyKeyStoreTest extends 
CamelTestSupport {
         keyStore.setKeyEntry("mykey", kp.getPrivate(), password, new 
Certificate[] { certificate });
 
         // Save keystore to file
-        try (FileOutputStream fos = new FileOutputStream("keystore.jks")) {
+        try (FileOutputStream fos = new FileOutputStream(KEYSTORE_FILE)) {
             keyStore.store(fos, password);
         }
         return keyStore;
diff --git 
a/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureSLHDSAKeystoreTest.java
 
b/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureSLHDSAKeystoreTest.java
index 86af526c863f..34c5a18ddcfa 100644
--- 
a/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureSLHDSAKeystoreTest.java
+++ 
b/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureSLHDSAKeystoreTest.java
@@ -51,6 +51,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class PQCSignatureSLHDSAKeystoreTest extends CamelTestSupport {
 
+    private static final String KEYSTORE_FILE = "keystore-slhdsa-test.jks";
+
     @EndpointInject("mock:sign")
     protected MockEndpoint resultSign;
 
@@ -82,7 +84,7 @@ public class PQCSignatureSLHDSAKeystoreTest extends 
CamelTestSupport {
 
     @AfterAll
     public static void teardown() throws Exception {
-        Files.deleteIfExists(Path.of("keystore.jks"));
+        Files.deleteIfExists(Path.of(KEYSTORE_FILE));
     }
 
     @Test
@@ -135,7 +137,7 @@ public class PQCSignatureSLHDSAKeystoreTest extends 
CamelTestSupport {
         keyStore.setKeyEntry("mykey", kp.getPrivate(), password, new 
Certificate[] { certificate });
 
         // Save keystore to file
-        try (FileOutputStream fos = new FileOutputStream("keystore.jks")) {
+        try (FileOutputStream fos = new FileOutputStream(KEYSTORE_FILE)) {
             keyStore.store(fos, password);
         }
         return keyStore;
diff --git 
a/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureWithKeyStoreTest.java
 
b/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureWithKeyStoreTest.java
index f0dfa078ecc6..79cf6476456c 100644
--- 
a/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureWithKeyStoreTest.java
+++ 
b/components/camel-pqc/src/test/java/org/apache/camel/component/pqc/PQCSignatureWithKeyStoreTest.java
@@ -51,6 +51,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 
 public class PQCSignatureWithKeyStoreTest extends CamelTestSupport {
 
+    private static final String KEYSTORE_FILE = 
"keystore-signature-with-test.jks";
+
     @EndpointInject("mock:sign")
     protected MockEndpoint resultSign;
 
@@ -81,7 +83,7 @@ public class PQCSignatureWithKeyStoreTest extends 
CamelTestSupport {
 
     @AfterAll
     public static void teardown() throws Exception {
-        Files.deleteIfExists(Path.of("keystore.jks"));
+        Files.deleteIfExists(Path.of(KEYSTORE_FILE));
     }
 
     @Test
@@ -134,7 +136,7 @@ public class PQCSignatureWithKeyStoreTest extends 
CamelTestSupport {
         keyStore.setKeyEntry("mykey", kp.getPrivate(), password, new 
Certificate[] { certificate });
 
         // Save keystore to file
-        try (FileOutputStream fos = new FileOutputStream("keystore.jks")) {
+        try (FileOutputStream fos = new FileOutputStream(KEYSTORE_FILE)) {
             keyStore.store(fos, password);
         }
 

Reply via email to