Skip to content

Commit 31e0eb4

Browse files
committed
Add skip_unavailable=false test
1 parent a33df84 commit 31e0eb4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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.esql.ccq;
9+
10+
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
11+
12+
import org.elasticsearch.test.TestClustersThreadFilter;
13+
import org.elasticsearch.test.cluster.ElasticsearchCluster;
14+
import org.junit.ClassRule;
15+
import org.junit.rules.RuleChain;
16+
import org.junit.rules.TestRule;
17+
18+
// Duplicate of EsqlRestValidationIT test where skip_unavailable is set to false
19+
@ThreadLeakFilters(filters = TestClustersThreadFilter.class)
20+
public class EsqlRestValidationSkipUnFalseIT extends EsqlRestValidationIT {
21+
static ElasticsearchCluster localCluster = Clusters.localCluster(remoteCluster, false);
22+
23+
@ClassRule
24+
public static TestRule clusterRule = RuleChain.outerRule(remoteCluster).around(localCluster);
25+
26+
@Override
27+
protected String getTestRestCluster() {
28+
return localCluster.getHttpAddresses();
29+
}
30+
}

0 commit comments

Comments
 (0)