Skip to content

EQL: Disable Eql Security IT tests in release builds #58293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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