Skip to content

Commit

Permalink
Propagate root subobjects setting to downsample indexes (elastic#115358)
Browse files Browse the repository at this point in the history
* Propagate root subobjects setting to downsample indexes

* exclude tests from rest compat

* remove subobjects propagation
  • Loading branch information
kkrik-es authored Oct 24, 2024
1 parent 160faa2 commit 5c1a3ad
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 228 deletions.
14 changes: 14 additions & 0 deletions x-pack/plugin/downsample/qa/rest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ tasks.named('yamlRestTest') {
tasks.named('yamlRestCompatTest') {
usesDefaultDistribution()
}
tasks.named("yamlRestCompatTestTransform").configure ({ task ->
task.skipTest("downsample/10_basic/Downsample index with empty dimension on routing path", "Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample histogram as label", "Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample date timestamp field using strict_date_optional_time_nanos format",
"Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample a downsampled index", "Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample date_nanos timestamp field using custom format", "Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample using coarse grained timestamp", "Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample label with ignore_above", "Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample object field", "Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample empty and missing labels", "Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample index", "Skip until pr/115358 gets backported")
task.skipTest("downsample/10_basic/Downsample index with empty dimension", "Skip until pr/115358 gets backported")
})
if (BuildParams.inFipsJvm){
// This test cluster is using a BASIC license and FIPS 140 mode is not supported in BASIC
tasks.named("yamlRestTest").configure{enabled = false }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

package org.elasticsearch.xpack.downsample;

import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;

import org.elasticsearch.test.cluster.ElasticsearchCluster;
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
import org.junit.ClassRule;

public class DownsampleWithBasicRestIT extends ESClientYamlSuiteTestCase {

@ClassRule
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
.distribution(DistributionType.DEFAULT)
.setting("xpack.security.enabled", "false")
.build();

@Override
protected String getTestRestCluster() {
return cluster.getHttpAddresses();
}

public DownsampleWithBasicRestIT(final ClientYamlTestCandidate testCandidate) {
super(testCandidate);
}

@ParametersFactory
public static Iterable<Object[]> parameters() throws Exception {
return ESClientYamlSuiteTestCase.createParameters();
}

}
Loading

0 comments on commit 5c1a3ad

Please sign in to comment.