Browse Source

Mute testDiagnosticTrustManagerForHostnameVerificationFailure on Windows (#76805)

David Kyle 4 years ago
parent
commit
cf0d2b56aa

+ 2 - 0
x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/ssl/SSLErrorMessageCertificateVerificationTests.java

@@ -16,6 +16,7 @@ import org.apache.http.impl.client.HttpClientBuilder;
 import org.apache.logging.log4j.Level;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
+import org.apache.lucene.util.Constants;
 import org.elasticsearch.client.Request;
 import org.elasticsearch.client.RestClient;
 import org.elasticsearch.common.logging.Loggers;
@@ -98,6 +99,7 @@ public class SSLErrorMessageCertificateVerificationTests extends ESTestCase {
 
     public void testDiagnosticTrustManagerForHostnameVerificationFailure() throws Exception {
         assumeFalse("https://github.com/elastic/elasticsearch/issues/49094", inFipsJvm());
+        assumeFalse("https://github.com/elastic/elasticsearch/issues/76767", Constants.WINDOWS);
         final Settings settings = getPemSSLSettings(HTTP_SERVER_SSL, "not-this-host.crt", "not-this-host.key",
             SslClientAuthenticationMode.NONE, SslVerificationMode.FULL, null)
             .putList("xpack.http.ssl.certificate_authorities", getPath("ca1.crt"))