Currently, I am moving all Rest tests to the CI server and noticed that all tests do not work due to SSL handshaking, now I have successfully disabled this using TrustManager using our Java test suite, but I'm not sure how to do this with Scala's mailing list library, and havent been able to find many examples that could be used in this scenario.
val JSONstr = "{samplekey:samplevalue}" val response:String = Http(url("https://www.host.com/path/to/post") << (checkInJSONstr, "application/json") as_str)
The following exception occurs as expected:
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:352) ...
Is there a way to do this purely syntactically ignoring SSL with the send library?
source share