File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
core/src/test/java/io/undertow/server/security Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3434import org .apache .http .client .methods .HttpPost ;
3535import org .apache .http .entity .StringEntity ;
3636import org .junit .AfterClass ;
37+ import org .junit .Assume ;
3738import org .junit .BeforeClass ;
3839import org .junit .Test ;
3940import org .junit .runner .RunWith ;
@@ -67,6 +68,8 @@ protected List<AuthenticationMechanism> getTestMechanisms() {
6768
6869 @ BeforeClass
6970 public static void startSSL () throws Exception {
71+ Assume .assumeTrue ("UNDERTOW-2112 New version TLSv1.3 and JDK14 and newer versions are breaking this feature" ,
72+ getJavaSpecificationVersion () < 14 );
7073 DefaultServer .startSSLServer (OptionMap .create (SSL_CLIENT_AUTH_MODE , NOT_REQUESTED ));
7174 clientSSLContext = DefaultServer .getClientSSLContext ();
7275 }
@@ -149,4 +152,10 @@ public void testClientCertSuccessWithLargePostBody() throws Exception {
149152 HttpClientUtils .readResponse (result );
150153 assertSingleNotificationType (EventType .AUTHENTICATED );
151154 }
155+
156+ private static int getJavaSpecificationVersion () {
157+ String versionString = System .getProperty ("java.specification.version" );
158+ versionString = versionString .startsWith ("1." ) ? versionString .substring (2 ) : versionString ;
159+ return Integer .parseInt (versionString );
160+ }
152161}
You can’t perform that action at this time.
0 commit comments