Skip to content

Commit 1db03c4

Browse files
authored
[8.x] Propagate root subobjects setting to downsample indexes (#115358) (#115577)
* Propagate root subobjects setting to downsample indexes (#115358) * Propagate root subobjects setting to downsample indexes * exclude tests from rest compat * remove subobjects propagation (cherry picked from commit 5c1a3ad) * Update build.gradle
1 parent 6c884e7 commit 1db03c4

File tree

2 files changed

+278
-228
lines changed

2 files changed

+278
-228
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0; you may not use this file except in compliance with the Elastic License
5+
* 2.0.
6+
*/
7+
8+
package org.elasticsearch.xpack.downsample;
9+
10+
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
11+
12+
import org.elasticsearch.test.cluster.ElasticsearchCluster;
13+
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
14+
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
15+
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
16+
import org.junit.ClassRule;
17+
18+
public class DownsampleWithBasicRestIT extends ESClientYamlSuiteTestCase {
19+
20+
@ClassRule
21+
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
22+
.distribution(DistributionType.DEFAULT)
23+
.setting("xpack.security.enabled", "false")
24+
.build();
25+
26+
@Override
27+
protected String getTestRestCluster() {
28+
return cluster.getHttpAddresses();
29+
}
30+
31+
public DownsampleWithBasicRestIT(final ClientYamlTestCandidate testCandidate) {
32+
super(testCandidate);
33+
}
34+
35+
@ParametersFactory
36+
public static Iterable<Object[]> parameters() throws Exception {
37+
return ESClientYamlSuiteTestCase.createParameters();
38+
}
39+
40+
}

0 commit comments

Comments
 (0)