Skip to content

Commit af97090

Browse files
committed
Add comment to explain the extra test check for FIPS
1 parent 79d930b commit af97090

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/transport-netty4/src/javaRestTest/java/org/elasticsearch/rest/Netty4HeadBodyIsEmptyIT.java

+2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ public void testTemplateExists() throws IOException {
128128
builder.endObject();
129129

130130
Request request = new Request("PUT", "/_template/template");
131+
// The warnings only need to be checked in FIPS mode because we run default distribution for FIPS,
132+
// while the integ-test distribution is used otherwise.
131133
if (inFipsJvm()) {
132134
request.setOptions(expectWarnings(
133135
"legacy template [template] has index patterns [*] matching patterns from existing composable templates " +

0 commit comments

Comments
 (0)