You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by jp...@apache.org on 2019/04/19 16:38:06 UTC

[camel] branch master updated: Fix camel-solr tests on JDK11, specify TLSv1.2 protocol versions explicitly, add test for TLS1.3 once we fully move to JDK11

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0719a94  Fix camel-solr tests on JDK11, specify TLSv1.2 protocol versions explicitly, add test for TLS1.3 once we fully move to JDK11
0719a94 is described below

commit 0719a9471c1232aa07d73e0fa04ae31bd3876f40
Author: jpoth <po...@gmail.com>
AuthorDate: Fri Apr 19 18:37:55 2019 +0200

    Fix camel-solr tests on JDK11, specify TLSv1.2 protocol versions explicitly, add test for TLS1.3 once we fully move to JDK11
---
 .../src/test/java/org/apache/camel/component/solr/SolrTestSupport.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/components/camel-solr/src/test/java/org/apache/camel/component/solr/SolrTestSupport.java b/components/camel-solr/src/test/java/org/apache/camel/component/solr/SolrTestSupport.java
index 5f30921..ac9f6e7 100644
--- a/components/camel-solr/src/test/java/org/apache/camel/component/solr/SolrTestSupport.java
+++ b/components/camel-solr/src/test/java/org/apache/camel/component/solr/SolrTestSupport.java
@@ -30,6 +30,9 @@ public abstract class SolrTestSupport extends CamelTestSupport {
     public static void initPort() throws Exception {
         port = AvailablePortFinder.getNextAvailable(8999);
         httpsPort = AvailablePortFinder.getNextAvailable(8999);
+        //TODO : add test for TLSv1.3
+        System.setProperty("jdk.tls.client.protocols", "TLSv1.2");
+        System.setProperty("jdk.tls.server.protocols", "TLSv1.2");
     }
 
     protected static int getPort() {