Skip to content

Commit 5567e31

Browse files
committed
ESQL: Fix field extractor tests in release
Fix the field extractor tests in the release build by skipping all of the cases that require a pragma.
1 parent d8b067d commit 5567e31

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Could

Whitespace-only changes.

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/FieldExtractorTestCase.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1111

1212
import org.apache.http.util.EntityUtils;
13+
import org.elasticsearch.Build;
1314
import org.elasticsearch.Version;
1415
import org.elasticsearch.client.Request;
1516
import org.elasticsearch.client.Response;
@@ -79,6 +80,9 @@ public static List<Object[]> args() throws Exception {
7980

8081
protected FieldExtractorTestCase(MappedFieldType.FieldExtractPreference preference) {
8182
this.preference = preference;
83+
if (preference != null) {
84+
assumeTrue("Requires pragma", Build.current().isSnapshot());
85+
}
8286
}
8387

8488
@Before

0 commit comments

Comments
 (0)