File tree Expand file tree Collapse file tree 2 files changed +278
-228
lines changed
x-pack/plugin/downsample/qa/rest/src/yamlRestTest
java/org/elasticsearch/xpack/downsample
resources/rest-api-spec/test/downsample Expand file tree Collapse file tree 2 files changed +278
-228
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments