From 8d92af185a404925b47f9519a1adbd3041646760 Mon Sep 17 00:00:00 2001 From: Yang Wang Date: Thu, 6 May 2021 15:29:47 +1000 Subject: [PATCH] [Test] mute another test affected by JDK-8266279 Issue is tracked at #72639 --- .../xpack/security/cli/CertificateGenerateToolTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/CertificateGenerateToolTests.java b/x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/CertificateGenerateToolTests.java index 9edad1735b89d..e6fdfed8c2d43 100644 --- a/x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/CertificateGenerateToolTests.java +++ b/x-pack/plugin/security/cli/src/test/java/org/elasticsearch/xpack/security/cli/CertificateGenerateToolTests.java @@ -9,6 +9,7 @@ import com.google.common.jimfs.Configuration; import com.google.common.jimfs.Jimfs; import org.bouncycastle.asn1.DLTaggedObject; +import org.elasticsearch.bootstrap.JavaVersion; import org.elasticsearch.core.internal.io.IOUtils; import org.bouncycastle.asn1.ASN1ObjectIdentifier; import org.bouncycastle.asn1.ASN1Sequence; @@ -265,6 +266,8 @@ public void testGeneratingCsr() throws Exception { } public void testGeneratingSignedCertificates() throws Exception { + assumeFalse("JDK bug JDK-8266279, https://github.com/elastic/elasticsearch/issues/72639", + JavaVersion.current().compareTo(JavaVersion.parse("8")) == 0); Path tempDir = initTempDir(); Path outputFile = tempDir.resolve("out.zip"); Path instanceFile = writeInstancesTo(tempDir.resolve("instances.yml"));