Skip to content

Commit

Permalink
EQL: Disable Eql Security IT tests in release builds
Browse files Browse the repository at this point in the history
Fixes elastic#58268
Relates to elastic#51613
  • Loading branch information
imotov committed Jun 17, 2020
1 parent c0191eb commit 0e8bae7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 2 additions & 4 deletions x-pack/plugin/eql/qa/security/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ apply plugin: 'elasticsearch.standalone-rest-test'
apply plugin: 'elasticsearch.rest-test'

dependencies {
// testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
testCompile project(path: xpackModule('eql'), configuration: 'runtime')
testCompile project(path: xpackModule('eql:qa:common'), configuration: 'runtime')
testCompile project(':x-pack:plugin:async-search:qa')
testImplementation project(path: xpackModule('eql'), configuration: 'runtime')
testImplementation project(path: xpackModule('eql:qa:common'), configuration: 'runtime')
}

testClusters.integTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
package org.elasticsearch.xpack.eql;

import org.apache.http.util.EntityUtils;
import org.elasticsearch.Build;
import org.elasticsearch.client.Request;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.Response;
Expand All @@ -23,6 +24,7 @@
import org.elasticsearch.xpack.core.XPackPlugin;
import org.elasticsearch.xpack.core.async.AsyncExecutionId;
import org.junit.Before;
import org.junit.BeforeClass;

import java.io.IOException;
import java.util.Map;
Expand All @@ -34,6 +36,12 @@
import static org.hamcrest.Matchers.equalTo;

public class AsyncEqlSecurityIT extends ESRestTestCase {

@BeforeClass
public static void checkForSnapshot() {
assumeTrue("Only works on snapshot builds for now", Build.CURRENT.isSnapshot());
}

/**
* All tests run as a superuser but use <code>es-security-runas-user</code> to become a less privileged user.
*/
Expand Down

0 comments on commit 0e8bae7

Please sign in to comment.