File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
src/test/java/org/elasticsearch/xpack/kql/query Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,6 @@ tests:
180180- class : org.elasticsearch.xpack.downsample.ILMDownsampleDisruptionIT
181181 method : testILMDownsampleRollingRestart
182182 issue : https://github.com/elastic/elasticsearch/issues/114233
183- - class : org.elasticsearch.xpack.kql.query.KqlQueryBuilderTests
184- issue : https://github.com/elastic/elasticsearch/issues/116487
185183- class : org.elasticsearch.reservedstate.service.FileSettingsServiceTests
186184 method : testInvalidJSON
187185 issue : https://github.com/elastic/elasticsearch/issues/116521
Original file line number Diff line number Diff line change 1- import org.elasticsearch.gradle.internal.info.BuildParams
2-
31import static org.elasticsearch.gradle.util.PlatformUtils.normalize
42
53apply plugin : ' elasticsearch.internal-es-plugin'
@@ -28,12 +26,6 @@ dependencies {
2826
2927tasks. named(' yamlRestTest' ). configure {
3028 usesDefaultDistribution()
31-
32- /* ***************************************************************
33- * Enable QA/rest integration tests for snapshot builds only *
34- * TODO: Enable for all builds upon this feature release *
35- ****************************************************************/
36- enabled = buildParams. isSnapshotBuild()
3729}
3830
3931/* *********************************
Original file line number Diff line number Diff line change 88package org .elasticsearch .xpack .kql .query ;
99
1010import org .apache .lucene .search .Query ;
11+ import org .elasticsearch .Build ;
1112import org .elasticsearch .core .Strings ;
1213import org .elasticsearch .index .query .MultiMatchQueryBuilder ;
1314import org .elasticsearch .index .query .QueryBuilder ;
2122import org .elasticsearch .test .AbstractQueryTestCase ;
2223import org .elasticsearch .xpack .kql .KqlPlugin ;
2324import org .hamcrest .Matchers ;
25+ import org .junit .BeforeClass ;
2426
2527import java .io .IOException ;
2628import java .util .Collection ;
3436import static org .hamcrest .Matchers .nullValue ;
3537
3638public class KqlQueryBuilderTests extends AbstractQueryTestCase <KqlQueryBuilder > {
39+ @ BeforeClass
40+ protected static void ensureSnapshotBuild () {
41+ assumeTrue ("requires snapshot builds" , Build .current ().isSnapshot ());
42+ }
3743
3844 @ Override
3945 protected Collection <Class <? extends Plugin >> getPlugins () {
You can’t perform that action at this time.
0 commit comments