mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
2e7b7be25c
This test has been blacklisted and deactivated months ago. This commit reenables this test and moves it at the right place. It also change the test to use the Execute Watch API instead of being sleep based. Original commit: elastic/x-pack-elasticsearch@e7a9689375
42 lines
1.5 KiB
Groovy
42 lines
1.5 KiB
Groovy
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
dependencies {
|
|
testCompile project(path: ':x-plugins:elasticsearch', configuration: 'runtime')
|
|
}
|
|
|
|
// bring in watcher rest test suite
|
|
task copyWatcherRestTests(type: Copy) {
|
|
into project.sourceSets.test.output.resourcesDir
|
|
from project(':x-plugins:elasticsearch').sourceSets.test.resources.srcDirs
|
|
include 'rest-api-spec/test/watcher/**'
|
|
}
|
|
|
|
integTest {
|
|
dependsOn copyWatcherRestTests
|
|
systemProperty 'tests.rest.blacklist',
|
|
['hijack/10_basic/*',
|
|
'getting_started/10_monitor_cluster_health/Getting started - Monitor cluster health'].join(',')
|
|
|
|
cluster {
|
|
plugin ':x-plugins:elasticsearch'
|
|
extraConfigFile 'x-pack/roles.yml', 'roles.yml'
|
|
setupCommand 'setupTestAdminUser',
|
|
'bin/x-pack/users', 'useradd', 'test_admin', '-p', 'changeme', '-r', 'superuser'
|
|
setupCommand 'setupWatcherManagerUser',
|
|
'bin/x-pack/users', 'useradd', 'watcher_manager', '-p', 'changeme', '-r', 'watcher_manager'
|
|
setupCommand 'setupPowerlessUser',
|
|
'bin/x-pack/users', 'useradd', 'powerless_user', '-p', 'changeme', '-r', 'crappy_role'
|
|
waitCondition = { node, ant ->
|
|
File tmpFile = new File(node.cwd, 'wait.success')
|
|
ant.get(src: "http://${node.httpUri()}",
|
|
dest: tmpFile.toString(),
|
|
username: 'test_admin',
|
|
password: 'changeme',
|
|
ignoreerrors: true,
|
|
retries: 10)
|
|
return tmpFile.exists()
|
|
}
|
|
}
|
|
}
|
|
|