File tree 2 files changed +10
-4
lines changed
x-pack/plugin/eql/qa/security
src/test/java/org/elasticsearch/xpack/eql
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ apply plugin: 'elasticsearch.standalone-rest-test'
5
5
apply plugin : ' elasticsearch.rest-test'
6
6
7
7
dependencies {
8
- // testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
9
- testCompile project(path : xpackModule(' eql' ), configuration : ' runtime' )
10
- testCompile project(path : xpackModule(' eql:qa:common' ), configuration : ' runtime' )
11
- testCompile project(' :x-pack:plugin:async-search:qa' )
8
+ testImplementation project(path : xpackModule(' eql' ), configuration : ' runtime' )
9
+ testImplementation project(path : xpackModule(' eql:qa:common' ), configuration : ' runtime' )
12
10
}
13
11
14
12
testClusters. integTest {
Original file line number Diff line number Diff line change 7
7
package org .elasticsearch .xpack .eql ;
8
8
9
9
import org .apache .http .util .EntityUtils ;
10
+ import org .elasticsearch .Build ;
10
11
import org .elasticsearch .client .Request ;
11
12
import org .elasticsearch .client .RequestOptions ;
12
13
import org .elasticsearch .client .Response ;
23
24
import org .elasticsearch .xpack .core .XPackPlugin ;
24
25
import org .elasticsearch .xpack .core .async .AsyncExecutionId ;
25
26
import org .junit .Before ;
27
+ import org .junit .BeforeClass ;
26
28
27
29
import java .io .IOException ;
28
30
import java .util .Map ;
34
36
import static org .hamcrest .Matchers .equalTo ;
35
37
36
38
public class AsyncEqlSecurityIT extends ESRestTestCase {
39
+
40
+ @ BeforeClass
41
+ public static void checkForSnapshot () {
42
+ assumeTrue ("Only works on snapshot builds for now" , Build .CURRENT .isSnapshot ());
43
+ }
44
+
37
45
/**
38
46
* All tests run as a superuser but use <code>es-security-runas-user</code> to become a less privileged user.
39
47
*/
You can’t perform that action at this time.
0 commit comments