test: make sure analysis-common module is also available on the cluster 1 and cluster2 nodes.
Original commit: elastic/x-pack-elasticsearch@eef5d2b566
This commit is contained in:
parent
ee3d17adfd
commit
8cc4f29f33
|
@ -8,6 +8,7 @@ apply plugin: 'elasticsearch.rest-test'
|
||||||
dependencies {
|
dependencies {
|
||||||
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'runtime')
|
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'runtime')
|
||||||
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'testArtifacts')
|
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'testArtifacts')
|
||||||
|
testCompile project(path: ':modules:analysis-common', configuration: 'runtime')
|
||||||
}
|
}
|
||||||
|
|
||||||
task setupClusterOne {}
|
task setupClusterOne {}
|
||||||
|
@ -17,6 +18,7 @@ configOne.setting('node.name', 'cluster1-node1')
|
||||||
configOne.setting('xpack.monitoring.enabled', false)
|
configOne.setting('xpack.monitoring.enabled', false)
|
||||||
configOne.setting('xpack.ml.enabled', false)
|
configOne.setting('xpack.ml.enabled', false)
|
||||||
configOne.plugin(':x-pack-elasticsearch:plugin')
|
configOne.plugin(':x-pack-elasticsearch:plugin')
|
||||||
|
configOne.module(project.project(':modules:analysis-common'))
|
||||||
configOne.setupCommand('setupDummyUser',
|
configOne.setupCommand('setupDummyUser',
|
||||||
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser')
|
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser')
|
||||||
configOne.waitCondition = { node, ant ->
|
configOne.waitCondition = { node, ant ->
|
||||||
|
@ -38,6 +40,7 @@ configTwo.setting('node.name', 'cluster2-node1')
|
||||||
configTwo.setting('xpack.monitoring.enabled', false)
|
configTwo.setting('xpack.monitoring.enabled', false)
|
||||||
configTwo.setting('xpack.ml.enabled', false)
|
configTwo.setting('xpack.ml.enabled', false)
|
||||||
configTwo.plugin(':x-pack-elasticsearch:plugin')
|
configTwo.plugin(':x-pack-elasticsearch:plugin')
|
||||||
|
configTwo.module(project.project(':modules:analysis-common'))
|
||||||
configTwo.setupCommand('setupDummyUser',
|
configTwo.setupCommand('setupDummyUser',
|
||||||
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser')
|
'bin/x-pack/users', 'useradd', 'test_user', '-p', 'changeme', '-r', 'superuser')
|
||||||
configTwo.waitCondition = { node, ant ->
|
configTwo.waitCondition = { node, ant ->
|
||||||
|
|
Loading…
Reference in New Issue