You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/05/19 11:54:12 UTC
[camel] branch main updated: CAMEL-19365: disable endpoint verification
This is an automated email from the ASF dual-hosted git repository.
orpiske 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 0304bc4080b CAMEL-19365: disable endpoint verification
0304bc4080b is described below
commit 0304bc4080b46fddc6b69b50411f8d7453af1361
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri May 19 09:49:19 2023 +0200
CAMEL-19365: disable endpoint verification
The test uses a generic certificate that would fail the validation
Thanks Freeman for providing the fix
---
components/camel-undertow/pom.xml | 12 ++++++++++++
.../camel/component/undertow/UndertowHttpsSpringTest.java | 2 --
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/components/camel-undertow/pom.xml b/components/camel-undertow/pom.xml
index 6158cca6286..ec5b20770c9 100644
--- a/components/camel-undertow/pom.xml
+++ b/components/camel-undertow/pom.xml
@@ -158,4 +158,16 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>${camel.surefire.fork.vmargs} -Dio.undertow.client.https.disableEndpointIdentification=true</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
diff --git a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowHttpsSpringTest.java b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowHttpsSpringTest.java
index cf97bf217dd..47d4e876e8c 100644
--- a/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowHttpsSpringTest.java
+++ b/components/camel-undertow/src/test/java/org/apache/camel/component/undertow/UndertowHttpsSpringTest.java
@@ -26,7 +26,6 @@ import org.apache.camel.ProducerTemplate;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.ContextConfiguration;
@@ -36,7 +35,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
@ExtendWith(SpringExtension.class)
@ContextConfiguration(locations = { "/SpringTest.xml" })
-@Disabled("Disabled due to CAMEL-19365")
public class UndertowHttpsSpringTest {
private Integer port;