Skip to content

Commit b91bbda

Browse files
committed
Skip netty4 yaml test in FIPS mode
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 Backport of: elastic#66842
1 parent 5bd2f13 commit b91bbda

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
@@ -28,6 +28,8 @@
2828
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
2929
import org.junit.BeforeClass;
3030

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

49+
@Override
50+
public void test() throws IOException {
51+
assumeFalse("FIPS JVMs are configured to use the 'security4' transport rather than 'netty4'", inFipsJvm());
52+
super.test();
53+
}
4754
}

0 commit comments

Comments
 (0)