Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package org.elasticsearch.xpack.esql;

import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.xpack.esql.action.PromqlFeatures;

import java.util.Set;

Expand All @@ -16,6 +17,7 @@
public class EsqlTestUtilsTests extends ESTestCase {

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

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