You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aurélien Pupier (Jira)" <ji...@apache.org> on 2026/09/02 14:52:00 UTC

[jira] [Created] (CAMEL-24599) Fix flaky test SSSlCertTrustTest.testUntrustedCertificate

Aurélien Pupier created CAMEL-24599:
---------------------------------------

             Summary: Fix flaky test SSSlCertTrustTest.testUntrustedCertificate
                 Key: CAMEL-24599
                 URL: https://issues.apache.org/jira/browse/CAMEL-24599
             Project: Camel
          Issue Type: Test
          Components: camel-oauth
    Affects Versions: 4.23.0
            Reporter: Aurélien Pupier


it has failed 3 times in a row a single time in 90 days.
it was flaky 3 times in 90 days
https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.tags=main%2CLinux&search.timeZoneId=Europe%2FParis&tests.container=org.apache.camel.test.oauth.SSLCertTrustTest&tests.test=testUntrustedCertificate

there is always this error:

{noformat}
org.opentest4j.AssertionFailedError: Certificate should not be trusted ==> Unexpected exception type thrown, expected: <javax.net.ssl.SSLHandshakeException> but was: <java.net.ConnectException>	
	at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3260)	
	at org.apache.camel.test.oauth.SSLCertTrustTest.testUntrustedCertificate(SSLCertTrustTest.java:82)	
Caused by: java.net.ConnectException: Connection timed out	
	at sun.nio.ch.Net.connect0(Native Method)	
	at sun.nio.ch.Net.connect(Net.java:579)	
	at sun.nio.ch.Net.connect(Net.java:568)	
	at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:593)	
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)	
	at java.net.Socket.connect(Socket.java:633)	
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)	
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)	
	at sun.net.NetworkClient.doConnect(NetworkClient.java:183)	
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:533)	
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:638)	
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)	
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)	
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)	
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1241)	
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1127)	
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)	
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142)	
	at org.apache.camel.test.oauth.SSLCertTrustTest.connectToUrl(SSLCertTrustTest.java:88)	
	at org.apache.camel.test.oauth.SSLCertTrustTest.lambda$testUntrustedCertificate$1(SSLCertTrustTest.java:82)	
	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:54)	
	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:40)	
	at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3260)	
	at org.apache.camel.test.oauth.SSLCertTrustTest.testUntrustedCertificate(SSLCertTrustTest.java:82)
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)