File tree 3 files changed +19
-1
lines changed
common/src/main/java/org/elasticsearch/test/eql
src/test/java/org/elasticsearch/xpack/eql
3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 6
6
package org .elasticsearch .test .eql ;
7
7
8
8
import org .apache .http .util .EntityUtils ;
9
+ import org .elasticsearch .Build ;
9
10
import org .elasticsearch .client .Request ;
10
11
import org .elasticsearch .client .Response ;
11
12
import org .elasticsearch .client .ResponseException ;
12
13
import org .elasticsearch .common .settings .Settings ;
13
14
import org .elasticsearch .test .rest .ESRestTestCase ;
14
15
import org .junit .After ;
15
16
import org .junit .Before ;
17
+ import org .junit .BeforeClass ;
16
18
17
19
import java .util .ArrayList ;
18
20
@@ -62,6 +64,11 @@ static class SearchTestConfiguration {
62
64
400 , "query malformed, empty clause found" ));
63
65
}
64
66
67
+ @ BeforeClass
68
+ public static void checkForSnapshot () {
69
+ assumeTrue ("Only works on snapshot builds for now" , Build .CURRENT .isSnapshot ());
70
+ }
71
+
65
72
@ Before
66
73
public void setup () throws Exception {
67
74
createIndex (defaultValidationIndexName , Settings .EMPTY );
Original file line number Diff line number Diff line change
1
+ import org.elasticsearch.gradle.info.BuildParams
2
+
1
3
apply plugin : ' elasticsearch.testclusters'
2
4
apply plugin : ' elasticsearch.standalone-rest-test'
3
5
apply plugin : ' elasticsearch.rest-test'
@@ -9,7 +11,9 @@ dependencies {
9
11
10
12
testClusters. integTest {
11
13
testDistribution = ' DEFAULT'
12
- setting ' xpack.eql.enabled' , ' true'
14
+ if (BuildParams . isSnapshotBuild()) {
15
+ setting ' xpack.eql.enabled' , ' true'
16
+ }
13
17
setting ' xpack.license.self_generated.type' , ' basic'
14
18
setting ' xpack.monitoring.collection.enabled' , ' true'
15
19
}
Original file line number Diff line number Diff line change 7
7
package org .elasticsearch .xpack .eql ;
8
8
9
9
import com .carrotsearch .randomizedtesting .annotations .ParametersFactory ;
10
+ import org .elasticsearch .Build ;
10
11
import org .elasticsearch .test .rest .yaml .ClientYamlTestCandidate ;
11
12
import org .elasticsearch .test .rest .yaml .ESClientYamlSuiteTestCase ;
13
+ import org .junit .BeforeClass ;
12
14
13
15
public class EqlRestIT extends ESClientYamlSuiteTestCase {
14
16
17
+ @ BeforeClass
18
+ public static void checkForSnapshot () {
19
+ assumeTrue ("Only works on snapshot builds for now" , Build .CURRENT .isSnapshot ());
20
+ }
21
+
15
22
public EqlRestIT (final ClientYamlTestCandidate testCandidate ) {
16
23
super (testCandidate );
17
24
}
You can’t perform that action at this time.
0 commit comments