diff --git a/x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/ssl/SSLReloadIntegTests.java b/x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/ssl/SSLReloadIntegTests.java index 0bcc6e5a5c6e9..9d72b9eb5c526 100644 --- a/x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/ssl/SSLReloadIntegTests.java +++ b/x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/ssl/SSLReloadIntegTests.java @@ -126,6 +126,9 @@ public void testThatSSLConfigurationReloadsOnModification() throws Exception { fail("handshake should not have been successful!"); } catch (SSLException | SocketException expected) { logger.trace("expected exception", expected); + } catch (IOException e) { + // BouncyCastle throws a different exception + assertThat(e.getClass().getName(), is("org.bouncycastle.tls.TlsFatalAlertReceived")); } // Copy testnode_updated.crt to the placeholder updateable.crt so that the nodes will start trusting it now try {