Skip to content

Commit ba3051a

Browse files
authored
Mute Netty4ClientYamlTestSuiteIT in FIPS 140 (#51536)
rest-api-spec/test/10_basic.yml would check that transport_types is `netty4` but we run FIPS 140 tests with default distribution and transport_types is `security4`
1 parent 81e7d92 commit ba3051a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@
2626
import org.apache.lucene.util.TimeUnits;
2727
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
2828
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
29+
import org.junit.BeforeClass;
2930

3031
//TODO: This is a *temporary* workaround to ensure a timeout does not mask other problems
3132
@TimeoutSuite(millis = 30 * TimeUnits.MINUTE)
3233
public class Netty4ClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
33-
34+
@BeforeClass
35+
public static void muteInFips() {
36+
assumeFalse("We run with DEFAULT distribution in FIPS mode and default to security4 instead of netty4", inFipsJvm());
37+
}
3438
public Netty4ClientYamlTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
3539
super(testCandidate);
3640
}

0 commit comments

Comments
 (0)