Merge pull request elastic/elasticsearch#2843 from rjernst/plugin_default_config
Switch to new plugin configuration for integ tests Original commit: elastic/x-pack-elasticsearch@e2a5da4144
This commit is contained in:
commit
30b084d372
|
@ -14,7 +14,7 @@ project.sourceSets.test.output.dir(outputDir, builtBy: copyXPackPluginProps)
|
||||||
|
|
||||||
integTest {
|
integTest {
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
setting 'xpack.security.audit.enabled', 'true'
|
setting 'xpack.security.audit.enabled', 'true'
|
||||||
setting 'xpack.security.audit.outputs', 'index'
|
setting 'xpack.security.audit.outputs', 'index'
|
||||||
setting 'logger.level', 'DEBUG'
|
setting 'logger.level', 'DEBUG'
|
||||||
|
|
|
@ -34,7 +34,7 @@ integTest {
|
||||||
'search/80_date_math_index_names/Missing index with catch'].join(',')
|
'search/80_date_math_index_names/Missing index with catch'].join(',')
|
||||||
|
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
setting 'xpack.watcher.enabled', 'false'
|
setting 'xpack.watcher.enabled', 'false'
|
||||||
setting 'xpack.monitoring.enabled', 'false'
|
setting 'xpack.monitoring.enabled', 'false'
|
||||||
setupCommand 'setupDummyUser',
|
setupCommand 'setupDummyUser',
|
||||||
|
|
|
@ -7,7 +7,7 @@ dependencies {
|
||||||
integTest {
|
integTest {
|
||||||
cluster {
|
cluster {
|
||||||
setting 'script.inline', 'true'
|
setting 'script.inline', 'true'
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
extraConfigFile 'x-pack/roles.yml', 'roles.yml'
|
extraConfigFile 'x-pack/roles.yml', 'roles.yml'
|
||||||
[
|
[
|
||||||
test_admin: 'superuser',
|
test_admin: 'superuser',
|
||||||
|
|
|
@ -14,7 +14,7 @@ project.sourceSets.test.output.dir(outputDir, builtBy: copyXPackPluginProps)
|
||||||
|
|
||||||
integTest {
|
integTest {
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
setupCommand 'setupDummyUser',
|
setupCommand 'setupDummyUser',
|
||||||
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser'
|
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser'
|
||||||
setupCommand 'setupTransportClientUser',
|
setupCommand 'setupTransportClientUser',
|
||||||
|
|
|
@ -43,7 +43,7 @@ task buildZip(type:Zip, dependsOn: [jar]) {
|
||||||
|
|
||||||
task integTest(type: org.elasticsearch.gradle.test.RestIntegTestTask, dependsOn: buildZip) {
|
task integTest(type: org.elasticsearch.gradle.test.RestIntegTestTask, dependsOn: buildZip) {
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
setting 'xpack.security.authc.realms.custom.order', '0'
|
setting 'xpack.security.authc.realms.custom.order', '0'
|
||||||
setting 'xpack.security.authc.realms.custom.type', 'custom'
|
setting 'xpack.security.authc.realms.custom.type', 'custom'
|
||||||
setting 'xpack.security.authc.realms.esusers.order', '1'
|
setting 'xpack.security.authc.realms.esusers.order', '1'
|
||||||
|
|
|
@ -7,7 +7,7 @@ dependencies {
|
||||||
integTest {
|
integTest {
|
||||||
cluster {
|
cluster {
|
||||||
setting 'script.inline', 'true'
|
setting 'script.inline', 'true'
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
extraConfigFile 'x-pack/roles.yml', 'roles.yml'
|
extraConfigFile 'x-pack/roles.yml', 'roles.yml'
|
||||||
[
|
[
|
||||||
test_admin: 'superuser',
|
test_admin: 'superuser',
|
||||||
|
|
|
@ -15,7 +15,7 @@ integTest {
|
||||||
dependsOn copyGraphRestTests
|
dependsOn copyGraphRestTests
|
||||||
|
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
extraConfigFile 'x-pack/roles.yml', 'roles.yml'
|
extraConfigFile 'x-pack/roles.yml', 'roles.yml'
|
||||||
setupCommand 'setupTestAdminUser',
|
setupCommand 'setupTestAdminUser',
|
||||||
'bin/x-pack/users', 'useradd', 'test_admin', '-p', 'changeme', '-r', 'superuser'
|
'bin/x-pack/users', 'useradd', 'test_admin', '-p', 'changeme', '-r', 'superuser'
|
||||||
|
|
|
@ -17,7 +17,7 @@ subprojects {
|
||||||
|
|
||||||
cluster {
|
cluster {
|
||||||
systemProperty 'es.logger.level', 'TRACE'
|
systemProperty 'es.logger.level', 'TRACE'
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
setting 'xpack.monitoring.collection.interval', '3s'
|
setting 'xpack.monitoring.collection.interval', '3s'
|
||||||
extraConfigFile 'x-pack/roles.yml', '../roles.yml'
|
extraConfigFile 'x-pack/roles.yml', '../roles.yml'
|
||||||
setupCommand 'setupTestAdminUser',
|
setupCommand 'setupTestAdminUser',
|
||||||
|
|
|
@ -147,7 +147,7 @@ processTestResources.dependsOn(
|
||||||
ext.pluginsCount = 1 // we install xpack explicitly
|
ext.pluginsCount = 1 // we install xpack explicitly
|
||||||
project.rootProject.subprojects.findAll { it.path.startsWith(':plugins:') }.each { subproj ->
|
project.rootProject.subprojects.findAll { it.path.startsWith(':plugins:') }.each { subproj ->
|
||||||
// need to get a non-decorated project object, so must re-lookup the project by path
|
// need to get a non-decorated project object, so must re-lookup the project by path
|
||||||
integTest.cluster.plugin(subproj.name, project(subproj.path))
|
integTest.cluster.plugin(subproj.path)
|
||||||
pluginsCount += 1
|
pluginsCount += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ integTest {
|
||||||
setting 'xpack.security.ssl.keystore.path', nodeKeystore.name
|
setting 'xpack.security.ssl.keystore.path', nodeKeystore.name
|
||||||
setting 'xpack.security.ssl.keystore.password', 'keypass'
|
setting 'xpack.security.ssl.keystore.password', 'keypass'
|
||||||
|
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
|
|
||||||
// copy keystores into config/
|
// copy keystores into config/
|
||||||
extraConfigFile nodeKeystore.name, nodeKeystore
|
extraConfigFile nodeKeystore.name, nodeKeystore
|
||||||
|
|
|
@ -9,13 +9,13 @@ dependencies {
|
||||||
ext.pluginsCount = 1 // we install xpack explicitly
|
ext.pluginsCount = 1 // we install xpack explicitly
|
||||||
project.rootProject.subprojects.findAll { it.path.startsWith(':plugins:') }.each { subproj ->
|
project.rootProject.subprojects.findAll { it.path.startsWith(':plugins:') }.each { subproj ->
|
||||||
// need to get a non-decorated project object, so must re-lookup the project by path
|
// need to get a non-decorated project object, so must re-lookup the project by path
|
||||||
integTest.cluster.plugin(subproj.name, project(subproj.path))
|
integTest.cluster.plugin(subproj.path)
|
||||||
pluginsCount += 1
|
pluginsCount += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
integTest {
|
integTest {
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
|
|
||||||
setupCommand 'setupDummyUser',
|
setupCommand 'setupDummyUser',
|
||||||
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser'
|
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser'
|
||||||
|
|
|
@ -7,7 +7,7 @@ dependencies {
|
||||||
|
|
||||||
integTest {
|
integTest {
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
setting 'script.inline', 'true'
|
setting 'script.inline', 'true'
|
||||||
setting 'xpack.security.enabled', 'false'
|
setting 'xpack.security.enabled', 'false'
|
||||||
setting 'xpack.monitoring.enabled', 'false'
|
setting 'xpack.monitoring.enabled', 'false'
|
||||||
|
|
|
@ -7,7 +7,7 @@ dependencies {
|
||||||
|
|
||||||
integTest {
|
integTest {
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
setting 'xpack.security.enabled', 'false'
|
setting 'xpack.security.enabled', 'false'
|
||||||
setting 'xpack.monitoring.enabled', 'false'
|
setting 'xpack.monitoring.enabled', 'false'
|
||||||
setting 'http.port', '9400'
|
setting 'http.port', '9400'
|
||||||
|
|
|
@ -7,7 +7,7 @@ dependencies {
|
||||||
|
|
||||||
integTest {
|
integTest {
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
setting 'script.inline', 'true'
|
setting 'script.inline', 'true'
|
||||||
setting 'xpack.security.enabled', 'false'
|
setting 'xpack.security.enabled', 'false'
|
||||||
setting 'xpack.monitoring.enabled', 'false'
|
setting 'xpack.monitoring.enabled', 'false'
|
||||||
|
|
|
@ -19,7 +19,7 @@ integTest {
|
||||||
'getting_started/10_monitor_cluster_health/Getting started - Monitor cluster health'].join(',')
|
'getting_started/10_monitor_cluster_health/Getting started - Monitor cluster health'].join(',')
|
||||||
|
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
extraConfigFile 'x-pack/roles.yml', 'roles.yml'
|
extraConfigFile 'x-pack/roles.yml', 'roles.yml'
|
||||||
setupCommand 'setupTestAdminUser',
|
setupCommand 'setupTestAdminUser',
|
||||||
'bin/x-pack/users', 'useradd', 'test_admin', '-p', 'changeme', '-r', 'superuser'
|
'bin/x-pack/users', 'useradd', 'test_admin', '-p', 'changeme', '-r', 'superuser'
|
||||||
|
|
|
@ -6,7 +6,7 @@ dependencies {
|
||||||
|
|
||||||
integTest {
|
integTest {
|
||||||
cluster {
|
cluster {
|
||||||
plugin 'x-pack', project(':x-plugins:elasticsearch:x-pack')
|
plugin ':x-plugins:elasticsearch:x-pack'
|
||||||
setting 'xpack.security.enabled', 'false'
|
setting 'xpack.security.enabled', 'false'
|
||||||
setting 'xpack.monitoring.enabled', 'false'
|
setting 'xpack.monitoring.enabled', 'false'
|
||||||
setting 'http.port', '9400'
|
setting 'http.port', '9400'
|
||||||
|
|
Loading…
Reference in New Issue