feat(alerting): Plan 01 — outbound HTTP infra + admin-managed outbound connections #139
@@ -38,7 +38,7 @@ class ApacheOutboundHttpClientFactoryIT {
|
|||||||
|
|
||||||
@AfterEach
|
@AfterEach
|
||||||
void tearDown() {
|
void tearDown() {
|
||||||
wm.stop();
|
if (wm != null) wm.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -55,7 +55,7 @@ class ApacheOutboundHttpClientFactoryIT {
|
|||||||
void systemDefaultRejectsSelfSignedCert() {
|
void systemDefaultRejectsSelfSignedCert() {
|
||||||
CloseableHttpClient client = factory.clientFor(OutboundHttpRequestContext.systemDefault());
|
CloseableHttpClient client = factory.clientFor(OutboundHttpRequestContext.systemDefault());
|
||||||
assertThatThrownBy(() -> client.execute(new HttpGet("https://localhost:" + wm.httpsPort() + "/ping")))
|
assertThatThrownBy(() -> client.execute(new HttpGet("https://localhost:" + wm.httpsPort() + "/ping")))
|
||||||
.hasMessageContaining("PKIX");
|
.isInstanceOfAny(javax.net.ssl.SSLException.class, javax.net.ssl.SSLHandshakeException.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user