diff --git a/x-pack/plugin/eql/qa/security/build.gradle b/x-pack/plugin/eql/qa/security/build.gradle index 3a402682ec04f..4a20f5adc63d6 100644 --- a/x-pack/plugin/eql/qa/security/build.gradle +++ b/x-pack/plugin/eql/qa/security/build.gradle @@ -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 { diff --git a/x-pack/plugin/eql/qa/security/src/test/java/org/elasticsearch/xpack/eql/AsyncEqlSecurityIT.java b/x-pack/plugin/eql/qa/security/src/test/java/org/elasticsearch/xpack/eql/AsyncEqlSecurityIT.java index 40db5f99354b1..34d1e09db9cb9 100644 --- a/x-pack/plugin/eql/qa/security/src/test/java/org/elasticsearch/xpack/eql/AsyncEqlSecurityIT.java +++ b/x-pack/plugin/eql/qa/security/src/test/java/org/elasticsearch/xpack/eql/AsyncEqlSecurityIT.java @@ -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; @@ -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; @@ -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 es-security-runas-user to become a less privileged user. */