This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit bb4d6f9b2a107c86a36a340409ddb11e4dfcd22d Author: JiriOndrusek <ondrusek.j...@gmail.com> AuthorDate: Fri Aug 16 15:19:27 2024 +0200 Fixed platfoprm-http and axs2 --- .../quarkus/component/as2/it/transport/Request.java | 12 ++++++------ .../camel/quarkus/component/as2/it/As2Helper.java | 20 ++++++++++---------- .../platform/http/it/PlatformHttpRouteBuilder.java | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/integration-tests/as2/src/main/java/org/apache/camel/quarkus/component/as2/it/transport/Request.java b/integration-tests/as2/src/main/java/org/apache/camel/quarkus/component/as2/it/transport/Request.java index 3801de986e..9913b4d462 100644 --- a/integration-tests/as2/src/main/java/org/apache/camel/quarkus/component/as2/it/transport/Request.java +++ b/integration-tests/as2/src/main/java/org/apache/camel/quarkus/component/as2/it/transport/Request.java @@ -115,19 +115,19 @@ public class Request { if (getMessageStructure() != null) { retVal.put(getMessageStructureKey(), getMessageStructure()); } - retVal.put("CamelAS2.ediMessageContentType", + retVal.put("CamelAs2.ediMessageContentType", ContentType.create(AS2MediaType.APPLICATION_EDIFACT, StandardCharsets.US_ASCII.name())); if (getEncryptionAlgorithm() != null) { - retVal.put("CamelAS2.encryptingCertificateChain", As2CertificateHelper.getCertList()); - retVal.put("CamelAS2.encryptingAlgorithm", getEncryptionAlgorithm()); + retVal.put("CamelAs2.encryptingCertificateChain", As2CertificateHelper.getCertList()); + retVal.put("CamelAs2.encryptingAlgorithm", getEncryptionAlgorithm()); } if (getSigningAlgorithm() != null) { // parameter type is java.security.cert.Certificate[] - retVal.put("CamelAS2.signingCertificateChain", As2CertificateHelper.getCertList().toArray(new Certificate[0])); + retVal.put("CamelAs2.signingCertificateChain", As2CertificateHelper.getCertList().toArray(new Certificate[0])); // parameter type is java.security.PrivateKey - retVal.put("CamelAS2.signingPrivateKey", As2CertificateHelper.getSigningKP().getPrivate()); + retVal.put("CamelAs2.signingPrivateKey", As2CertificateHelper.getSigningKP().getPrivate()); // parameter type is org.apache.camel.component.as2.api.AS2SignatureAlgorithm - retVal.put("CamelAS2.signingAlgorithm", getSigningAlgorithm()); + retVal.put("CamelAs2.signingAlgorithm", getSigningAlgorithm()); } return retVal; } diff --git a/integration-tests/as2/src/test/java/org/apache/camel/quarkus/component/as2/it/As2Helper.java b/integration-tests/as2/src/test/java/org/apache/camel/quarkus/component/as2/it/As2Helper.java index 8b8139eb0d..95c500c12b 100644 --- a/integration-tests/as2/src/test/java/org/apache/camel/quarkus/component/as2/it/As2Helper.java +++ b/integration-tests/as2/src/test/java/org/apache/camel/quarkus/component/as2/it/As2Helper.java @@ -88,7 +88,7 @@ public class As2Helper { public static Request createMultipartSignedRequest() { final Map<String, Object> headers = createBaseHeaders(AS2MessageStructure.SIGNED); // parameter type is String[] - headers.put("CamelAS2.signedReceiptMicAlgorithms", SIGNED_RECEIPT_MIC_ALGORITHMS); + headers.put("CamelAs2.signedReceiptMicAlgorithms", SIGNED_RECEIPT_MIC_ALGORITHMS); return new Request() .withHeaders(headers) @@ -99,24 +99,24 @@ public class As2Helper { private static Map<String, Object> createBaseHeaders(AS2MessageStructure plain) { final Map<String, Object> headers = new HashMap<>(); // parameter type is String - headers.put("CamelAS2.requestUri", REQUEST_URI); + headers.put("CamelAs2.requestUri", REQUEST_URI); // parameter type is String - headers.put("CamelAS2.subject", SUBJECT); + headers.put("CamelAs2.subject", SUBJECT); // parameter type is String - headers.put("CamelAS2.from", FROM); + headers.put("CamelAs2.from", FROM); // parameter type is String - headers.put("CamelAS2.as2From", AS2_NAME); + headers.put("CamelAs2.as2From", AS2_NAME); // parameter type is String - headers.put("CamelAS2.as2To", AS2_NAME); + headers.put("CamelAs2.as2To", AS2_NAME); // parameter type is org.apache.camel.component.as2.api.AS2MessageStructure - headers.put("CamelAS2.as2MessageStructure", plain); + headers.put("CamelAs2.as2MessageStructure", plain); // parameter type is org.apache.http.entity.ContentType - headers.put("CamelAS2.ediMessageContentType", + headers.put("CamelAs2.ediMessageContentType", ContentType.create(AS2MediaType.APPLICATION_EDIFACT, StandardCharsets.US_ASCII.name())); // parameter type is String - headers.put("CamelAS2.ediMessageTransferEncoding", EDI_MESSAGE_CONTENT_TRANSFER_ENCODING); + headers.put("CamelAs2.ediMessageTransferEncoding", EDI_MESSAGE_CONTENT_TRANSFER_ENCODING); // parameter type is String - headers.put("CamelAS2.dispositionNotificationTo", DISPOSITION_NOTIFICATION_TO); + headers.put("CamelAs2.dispositionNotificationTo", DISPOSITION_NOTIFICATION_TO); return headers; } diff --git a/integration-tests/platform-http/src/main/java/org/apache/camel/quarkus/component/platform/http/it/PlatformHttpRouteBuilder.java b/integration-tests/platform-http/src/main/java/org/apache/camel/quarkus/component/platform/http/it/PlatformHttpRouteBuilder.java index 9ed05f8ae9..79dd68efe1 100644 --- a/integration-tests/platform-http/src/main/java/org/apache/camel/quarkus/component/platform/http/it/PlatformHttpRouteBuilder.java +++ b/integration-tests/platform-http/src/main/java/org/apache/camel/quarkus/component/platform/http/it/PlatformHttpRouteBuilder.java @@ -171,7 +171,7 @@ public class PlatformHttpRouteBuilder extends RouteBuilder { .transform(body().prepend("Hello ")); // Basic auth security tests - from("platform-http:/platform-http/secure/basic") + from("platform-http:/platform-http/secure/basic?returnHttpRequestHeaders=true") .process(exchange -> { Message message = exchange.getMessage(); QuarkusHttpUser user = message.getHeader(VertxPlatformHttpConstants.AUTHENTICATED_USER,