Skip to content

Commit de05b57

Browse files
authored
EQL: Disable Eql Security IT tests in release builds (#58293)
Fixes #58268 Relates to #51613
1 parent c906f63 commit de05b57

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

x-pack/plugin/eql/qa/security/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ apply plugin: 'elasticsearch.standalone-rest-test'
55
apply plugin: 'elasticsearch.rest-test'
66

77
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')
1210
}
1311

1412
testClusters.integTest {

x-pack/plugin/eql/qa/security/src/test/java/org/elasticsearch/xpack/eql/AsyncEqlSecurityIT.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
package org.elasticsearch.xpack.eql;
88

99
import org.apache.http.util.EntityUtils;
10+
import org.elasticsearch.Build;
1011
import org.elasticsearch.client.Request;
1112
import org.elasticsearch.client.RequestOptions;
1213
import org.elasticsearch.client.Response;
@@ -23,6 +24,7 @@
2324
import org.elasticsearch.xpack.core.XPackPlugin;
2425
import org.elasticsearch.xpack.core.async.AsyncExecutionId;
2526
import org.junit.Before;
27+
import org.junit.BeforeClass;
2628

2729
import java.io.IOException;
2830
import java.util.Map;
@@ -34,6 +36,12 @@
3436
import static org.hamcrest.Matchers.equalTo;
3537

3638
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+
3745
/**
3846
* All tests run as a superuser but use <code>es-security-runas-user</code> to become a less privileged user.
3947
*/

0 commit comments

Comments
 (0)