From 52e6fdf3d68b7ba77b6a88d8a921c830d5c3200b Mon Sep 17 00:00:00 2001 From: Ioannis Kakavas Date: Mon, 13 Aug 2018 21:08:10 +0300 Subject: [PATCH] Unmute WildFly tests in FIPS JVM (#32814) WildflyIT test fails in a FIPS JVM due to the amount of output in stderr. The excessive stderr output is due to https://bugs.openjdk.java.net/browse/JDK-8202893 and is not an indication of a failure that should be tracked. This commit adjusts the limit to something more lenient that would allow the test to succeed. Reverts #32543 --- qa/wildfly/build.gradle | 4 ++-- .../src/test/java/org/elasticsearch/wildfly/WildflyIT.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qa/wildfly/build.gradle b/qa/wildfly/build.gradle index 0bab0c70d147d..b55aa68573c1c 100644 --- a/qa/wildfly/build.gradle +++ b/qa/wildfly/build.gradle @@ -84,7 +84,7 @@ task deploy(type: Copy) { } task writeElasticsearchProperties { - onlyIf { !Os.isFamily(Os.FAMILY_WINDOWS) && !inFipsJvm } + onlyIf { !Os.isFamily(Os.FAMILY_WINDOWS) } dependsOn 'integTestCluster#wait', deploy doLast { final File elasticsearchProperties = file("${wildflyInstall}/standalone/configuration/elasticsearch.properties") @@ -177,7 +177,7 @@ task stopWildfly(type: LoggedExec) { commandLine "${wildflyInstall}/bin/jboss-cli.sh", "--controller=localhost:${-> managementPort}", "--connect", "command=shutdown" } -if (!Os.isFamily(Os.FAMILY_WINDOWS) && !inFipsJvm) { +if (!Os.isFamily(Os.FAMILY_WINDOWS)) { integTestRunner.dependsOn(configureTransportClient) final TaskExecutionAdapter logDumpListener = new TaskExecutionAdapter() { @Override diff --git a/qa/wildfly/src/test/java/org/elasticsearch/wildfly/WildflyIT.java b/qa/wildfly/src/test/java/org/elasticsearch/wildfly/WildflyIT.java index 46fafebeb4e2d..1da713ea9bcd9 100644 --- a/qa/wildfly/src/test/java/org/elasticsearch/wildfly/WildflyIT.java +++ b/qa/wildfly/src/test/java/org/elasticsearch/wildfly/WildflyIT.java @@ -28,6 +28,7 @@ import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.util.EntityUtils; import org.apache.lucene.util.LuceneTestCase; +import org.apache.lucene.util.TestRuleLimitSysouts; import org.elasticsearch.Build; import org.elasticsearch.Version; import org.elasticsearch.cluster.ClusterModule; @@ -50,6 +51,7 @@ import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.instanceOf; +@TestRuleLimitSysouts.Limit(bytes = 14000) public class WildflyIT extends LuceneTestCase { public void testTransportClient() throws URISyntaxException, IOException {