Skip to content

Commit

Permalink
[8.x] Propagate root subobjects setting to downsample indexes (#115358)…
Browse files Browse the repository at this point in the history
… (#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
  • Loading branch information
kkrik-es authored Oct 25, 2024
1 parent 6c884e7 commit 1db03c4
Show file tree
Hide file tree
Showing 2 changed files with 278 additions and 228 deletions.
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 1db03c4

Please sign in to comment.