Skip to content

Commit 22bc833

Browse files
authored
Skip netty4 yaml test in FIPS mode (elastic#66842)
The "Netty loaded" YAML test asserts that the configured transport is "netty4", however when in FIPS mode, the tests enable security and the configured transport is "security4". This change skips the netty4 yaml test when running in FIPS mode. Resolves: elastic#66818
1 parent a488794 commit 22bc833

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/transport-netty4/src/yamlRestTest/java/org/elasticsearch/http/netty4/Netty4ClientYamlTestSuiteIT.java

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
2828
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
2929

30+
import java.io.IOException;
31+
3032
//TODO: This is a *temporary* workaround to ensure a timeout does not mask other problems
3133
@TimeoutSuite(millis = 30 * TimeUnits.MINUTE)
3234
public class Netty4ClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
@@ -40,4 +42,9 @@ public static Iterable<Object[]> parameters() throws Exception {
4042
return ESClientYamlSuiteTestCase.createParameters();
4143
}
4244

45+
@Override
46+
public void test() throws IOException {
47+
assumeFalse("FIPS JVMs are configured to use the 'security4' transport rather than 'netty4'", inFipsJvm());
48+
super.test();
49+
}
4350
}

0 commit comments

Comments
 (0)