Skip to content

Commit

Permalink
Adding @ClassRule annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Oct 10, 2023
1 parent a1993f7 commit e55736e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
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 IngestCommonClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {

Expand All @@ -38,6 +39,7 @@ protected Settings restClientSettings() {
return Settings.builder().put(ThreadContext.PREFIX + ".Authorization", BASIC_AUTH_VALUE).build();
}

@ClassRule
public static ElasticsearchCluster cluster = createCluster();

private static ElasticsearchCluster createCluster() {
Expand Down

0 comments on commit e55736e

Please sign in to comment.