Mute HttpCertificateCommandTests.testTextFileSubstitutions (#50965) (#50966)

Relates #50964
This commit is contained in:
Daniel Mitterdorfer 2020-01-14 12:40:34 +01:00 committed by GitHub
parent 2bb7b53e41
commit 263083b882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ package org.elasticsearch.xpack.security.cli;
import com.google.common.jimfs.Configuration; import com.google.common.jimfs.Configuration;
import com.google.common.jimfs.Jimfs; import com.google.common.jimfs.Jimfs;
import joptsimple.OptionSet; import joptsimple.OptionSet;
import org.apache.lucene.util.Constants;
import org.bouncycastle.asn1.DERIA5String; import org.bouncycastle.asn1.DERIA5String;
import org.bouncycastle.asn1.DEROctetString; import org.bouncycastle.asn1.DEROctetString;
import org.bouncycastle.asn1.DERSequence; import org.bouncycastle.asn1.DERSequence;
@ -536,6 +537,7 @@ public class HttpCertificateCommandTests extends ESTestCase {
} }
public void testTextFileSubstitutions() throws Exception { public void testTextFileSubstitutions() throws Exception {
assumeFalse("https://github.com/elastic/elasticsearch/issues/50964", Constants.WINDOWS);
CheckedBiFunction<String, Map<String, String>, String, Exception> copy = (source, subs) -> { CheckedBiFunction<String, Map<String, String>, String, Exception> copy = (source, subs) -> {
try (InputStream in = new ByteArrayInputStream(source.getBytes(StandardCharsets.UTF_8)); try (InputStream in = new ByteArrayInputStream(source.getBytes(StandardCharsets.UTF_8));
StringWriter out = new StringWriter(); StringWriter out = new StringWriter();