Skip to content

Commit

Permalink
Disable KqlQueryBuilderTests on non-snapshots build.
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret committed Nov 19, 2024
1 parent b30a4b2 commit 1f24d5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ tests:
- class: org.elasticsearch.xpack.downsample.ILMDownsampleDisruptionIT
method: testILMDownsampleRollingRestart
issue: https://github.com/elastic/elasticsearch/issues/114233
- class: org.elasticsearch.xpack.kql.query.KqlQueryBuilderTests
issue: https://github.com/elastic/elasticsearch/issues/116487
- class: org.elasticsearch.reservedstate.service.FileSettingsServiceTests
method: testInvalidJSON
issue: https://github.com/elastic/elasticsearch/issues/116521
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package org.elasticsearch.xpack.kql.query;

import org.apache.lucene.search.Query;
import org.elasticsearch.Build;
import org.elasticsearch.core.Strings;
import org.elasticsearch.index.query.MultiMatchQueryBuilder;
import org.elasticsearch.index.query.QueryBuilder;
Expand All @@ -21,6 +22,7 @@
import org.elasticsearch.test.AbstractQueryTestCase;
import org.elasticsearch.xpack.kql.KqlPlugin;
import org.hamcrest.Matchers;
import org.junit.Before;

import java.io.IOException;
import java.util.Collection;
Expand All @@ -34,6 +36,10 @@
import static org.hamcrest.Matchers.nullValue;

public class KqlQueryBuilderTests extends AbstractQueryTestCase<KqlQueryBuilder> {
@Before
protected void ensureSnapshotBuild() {
assumeTrue("requires snapshot builds", Build.current().isSnapshot());
}

@Override
protected Collection<Class<? extends Plugin>> getPlugins() {
Expand Down

0 comments on commit 1f24d5b

Please sign in to comment.