Skip to content

Commit 732bab0

Browse files
authored
Skip tests with TS command for non-snapshot builds (#131518)
The `TS` source is guarded by a feature flag. Fixes #131500
1 parent 27a09d8 commit 732bab0

File tree

1 file changed

+5
-0
lines changed
  • x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample

1 file changed

+5
-0
lines changed

x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/DownsampleIT.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
package org.elasticsearch.xpack.downsample;
99

10+
import org.elasticsearch.Build;
1011
import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;
1112
import org.elasticsearch.action.admin.indices.delete.TransportDeleteIndexAction;
1213
import org.elasticsearch.action.admin.indices.rollover.RolloverRequest;
@@ -215,6 +216,10 @@ public void testAggMetricInEsqlTSAfterDownsampling() throws Exception {
215216
};
216217
bulkIndex(dataStreamName, nextSourceSupplier, 100);
217218

219+
if (Build.current().isSnapshot() == false) {
220+
return;
221+
}
222+
218223
// Since the downsampled field (cpu) is downsampled in one index and not in the other, we want to confirm
219224
// first that the field is unsupported and has 2 original types - double and aggregate_metric_double
220225
try (var resp = esqlCommand("TS " + dataStreamName + " | KEEP @timestamp, host, cluster, cpu")) {

0 commit comments

Comments
 (0)