File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
common/src/main/java/org/elasticsearch/test/eql
src/test/java/org/elasticsearch/xpack/eql Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 66package org .elasticsearch .test .eql ;
77
88import org .apache .http .util .EntityUtils ;
9+ import org .elasticsearch .Build ;
910import org .elasticsearch .client .Request ;
1011import org .elasticsearch .client .Response ;
1112import org .elasticsearch .client .ResponseException ;
1213import org .elasticsearch .common .settings .Settings ;
1314import org .elasticsearch .test .rest .ESRestTestCase ;
1415import org .junit .After ;
1516import org .junit .Before ;
17+ import org .junit .BeforeClass ;
1618
1719import java .util .ArrayList ;
1820
@@ -62,6 +64,11 @@ static class SearchTestConfiguration {
6264 400 , "query malformed, empty clause found" ));
6365 }
6466
67+ @ BeforeClass
68+ public static void checkForSnapshot () {
69+ assumeTrue ("Only works on snapshot builds for now" , Build .CURRENT .isSnapshot ());
70+ }
71+
6572 @ Before
6673 public void setup () throws Exception {
6774 createIndex (defaultValidationIndexName , Settings .EMPTY );
Original file line number Diff line number Diff line change 1+ import org.elasticsearch.gradle.info.BuildParams
2+
13apply plugin : ' elasticsearch.testclusters'
24apply plugin : ' elasticsearch.standalone-rest-test'
35apply plugin : ' elasticsearch.rest-test'
@@ -9,7 +11,9 @@ dependencies {
911
1012testClusters. integTest {
1113 testDistribution = ' DEFAULT'
12- setting ' xpack.eql.enabled' , ' true'
14+ if (BuildParams . isSnapshotBuild()) {
15+ setting ' xpack.eql.enabled' , ' true'
16+ }
1317 setting ' xpack.license.self_generated.type' , ' basic'
1418 setting ' xpack.monitoring.collection.enabled' , ' true'
1519}
Original file line number Diff line number Diff line change 77package org .elasticsearch .xpack .eql ;
88
99import com .carrotsearch .randomizedtesting .annotations .ParametersFactory ;
10+ import org .elasticsearch .Build ;
1011import org .elasticsearch .test .rest .yaml .ClientYamlTestCandidate ;
1112import org .elasticsearch .test .rest .yaml .ESClientYamlSuiteTestCase ;
13+ import org .junit .BeforeClass ;
1214
1315public class EqlRestIT extends ESClientYamlSuiteTestCase {
1416
17+ @ BeforeClass
18+ public static void checkForSnapshot () {
19+ assumeTrue ("Only works on snapshot builds for now" , Build .CURRENT .isSnapshot ());
20+ }
21+
1522 public EqlRestIT (final ClientYamlTestCandidate testCandidate ) {
1623 super (testCandidate );
1724 }
You can’t perform that action at this time.
0 commit comments