Skip to content

Commit 07234b2

Browse files
authored
Test fix: run test that requires a feature flag only in snapshot builds (elastic#139056)
Run tests that downsample exponential histograms only in snapshot builds
1 parent 2b07fec commit 07234b2

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 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.cluster.node.capabilities.NodesCapabilitiesRequest;
1112
import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;
1213
import org.elasticsearch.action.admin.indices.delete.TransportDeleteIndexAction;
@@ -137,6 +138,8 @@ public void testAggregateMethod() throws Exception {
137138
}
138139

139140
private void downsampleWithSamplingMethod(DownsampleConfig.SamplingMethod method) throws Exception {
141+
// TODO: remove when FeatureFlag is removed and add minimum required version to yaml spec
142+
assumeTrue("Only when exponential_histogram feature flag is enabled", Build.current().isSnapshot());
140143
String dataStreamName = "metrics-foo";
141144
String mapping = """
142145
{

0 commit comments

Comments
 (0)