Skip to content
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
7 changes: 0 additions & 7 deletions x-pack/plugin/async-search/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.elasticsearch.gradle.testclusters.StandaloneRestIntegTestTask

apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
apply plugin: 'elasticsearch.internal-java-rest-test'
Expand Down Expand Up @@ -36,8 +34,3 @@ restResources {
include '_common', 'indices', 'index', 'async_search'
}
}

tasks.withType(StandaloneRestIntegTestTask).configureEach {
def isSnapshot = buildParams.snapshotBuild
it.onlyIf("snapshot build") { isSnapshot }
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,28 @@ public class AsyncSearchSecurityIT extends ESRestTestCase {
}

@ClassRule
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
.module("test-error-query")
.module("analysis-common")
.module("x-pack-async-search")
.setting("xpack.license.self_generated.type", "trial")
.setting("xpack.security.enabled", "true")
.rolesFile(Resource.fromClasspath("roles.yml"))
.user("test_kibana_user", "x-pack-test-password", "kibana_system", false)
.user("test-admin", "x-pack-test-password", "test-admin", false)
.user("user1", "x-pack-test-password", "user1", false)
.user("user2", "x-pack-test-password", "user2", false)
.user("user-dls", "x-pack-test-password", "user-dls", false)
.user("user-cancel", "x-pack-test-password", "user-cancel", false)
.user("user-monitor", "x-pack-test-password", "user-monitor", false)
.build();
public static ElasticsearchCluster cluster = getCluster();

private static ElasticsearchCluster getCluster() {
var builder = ElasticsearchCluster.local()
.module("analysis-common")
.module("x-pack-async-search")
.setting("xpack.license.self_generated.type", "trial")
.setting("xpack.security.enabled", "true")
.rolesFile(Resource.fromClasspath("roles.yml"))
.user("test_kibana_user", "x-pack-test-password", "kibana_system", false)
.user("test-admin", "x-pack-test-password", "test-admin", false)
.user("user1", "x-pack-test-password", "user1", false)
.user("user2", "x-pack-test-password", "user2", false)
.user("user-dls", "x-pack-test-password", "user-dls", false)
.user("user-cancel", "x-pack-test-password", "user-cancel", false)
.user("user-monitor", "x-pack-test-password", "user-monitor", false);
if (Build.current().isSnapshot()) {
// Only in non-release builds we can use the error_query
builder = builder.module("test-error-query");
}
return builder.build();
}

@Override
protected String getTestRestCluster() {
Expand Down