Given test should pass
RestAssured.baseURI = "https://sni.velox.ch"; // sample server with SNI configured
given().expect().statusCode(200).with().get("/");
but it throws an exception instead:
javax.net.ssl.SSLException: hostname in certificate didn't match:
<sni.velox.ch> != <alice.sni.velox.ch> OR <alice.sni.velox.ch> OR
<carol.sni.velox.ch>
Test with relaxed HTTP validation passes:
given().relaxedHTTPSValidation().expect().statusCode(200).with().get("/");
I run the test on Java 1.7 using TestNG and Maven.
Original issue reported on code.google.com by marcin.j...@supermemo.com on 19 Mar 2015 at 1:04
Original issue reported on code.google.com by
marcin.j...@supermemo.com
on 19 Mar 2015 at 1:04