diff --git a/commafeed-server/pom.xml b/commafeed-server/pom.xml index e5a9992f..ffef6dd1 100644 --- a/commafeed-server/pom.xml +++ b/commafeed-server/pom.xml @@ -15,6 +15,7 @@ 7.0.0 6.5 2.1.0 + 1.78 1.20.0 @@ -463,12 +464,28 @@ mockito-junit-jupiter test + org.mock-server mockserver-junit-jupiter 5.15.0 test + + + + org.bouncycastle + bcprov-jdk18on + ${bouncycastle.version} + test + + + org.bouncycastle + bcpkix-jdk18on + ${bouncycastle.version} + test + + com.icegreen greenmail-junit5 diff --git a/commafeed-server/src/test/java/com/commafeed/backend/HttpGetterTest.java b/commafeed-server/src/test/java/com/commafeed/backend/HttpGetterTest.java index 1e3037cb..55b6d950 100644 --- a/commafeed-server/src/test/java/com/commafeed/backend/HttpGetterTest.java +++ b/commafeed-server/src/test/java/com/commafeed/backend/HttpGetterTest.java @@ -197,4 +197,12 @@ class HttpGetterTest { Assertions.assertEquals("Response size exceeds the maximum allowed size (10000 bytes)", e.getMessage()); } + @Test + void ignoreInvalidSsl() throws Exception { + this.mockServerClient.when(HttpRequest.request().withMethod("GET")).respond(HttpResponse.response().withBody("ok")); + + HttpResult result = getter.getBinary("https://localhost:" + this.mockServerClient.getPort(), TIMEOUT); + Assertions.assertEquals("ok", new String(result.getContent())); + } + } \ No newline at end of file