Skip to content

Commit e24330e

Browse files
authored
EsqlTestUtilsTests: add checks for PromQL availability (#138882)
fixes #138879
1 parent eb50071 commit e24330e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/plugin/esql/qa/testFixtures/src/test/java/org/elasticsearch/xpack/esql/EsqlTestUtilsTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
package org.elasticsearch.xpack.esql;
99

1010
import org.elasticsearch.test.ESTestCase;
11+
import org.elasticsearch.xpack.esql.action.PromqlFeatures;
1112

1213
import java.util.Set;
1314

@@ -16,6 +17,7 @@
1617
public class EsqlTestUtilsTests extends ESTestCase {
1718

1819
public void testPromQL() {
20+
assumeTrue("requires snapshot build with promql feature enabled", PromqlFeatures.isEnabled());
1921
assertThat(
2022
EsqlTestUtils.addRemoteIndices("PROMQL foo, bar step 1m (avg(baz))", Set.of(), false),
2123
equalTo("PROMQL *:foo,foo,*:bar,bar step 1m (avg(baz))")
@@ -27,6 +29,7 @@ public void testPromQL() {
2729
}
2830

2931
public void testPromQLDefaultIndex() {
32+
assumeTrue("requires snapshot build with promql feature enabled", PromqlFeatures.isEnabled());
3033
assertThat(
3134
EsqlTestUtils.addRemoteIndices("PROMQL step 1m (avg(baz))", Set.of(), false),
3235
equalTo("PROMQL *:*,* step 1m (avg(baz))")

0 commit comments

Comments
 (0)