mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
The main purpose of this commit is to add a single autoscaling REST endpoint skeleton, for the purpose of starting to build out the build and testing infrastructure that will surround it. For example, rather than commiting a fully-functioning autoscaling API, we introduce here the skeleton so that we can start wiring up the build and testing infrastructure, establish security roles/permissions, an so on. This way, in a forthcoming PR that introduces actual functionality, that PR will be smaller and have less distractions around that sort of infrastructure.
26 lines
843 B
Groovy
26 lines
843 B
Groovy
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
apply plugin: 'elasticsearch.standalone-test'
|
|
|
|
dependencies {
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
testCompile project(path: xpackModule('autoscaling'), configuration: 'runtime')
|
|
}
|
|
|
|
task restTest(type: RestIntegTestTask) {
|
|
mustRunAfter(precommit)
|
|
}
|
|
|
|
testClusters.restTest {
|
|
testDistribution = 'DEFAULT'
|
|
setting 'xpack.autoscaling.enabled', 'true'
|
|
setting 'xpack.security.enabled', 'true'
|
|
extraConfigFile 'roles.yml', file('autoscaling-roles.yml')
|
|
user username: 'autoscaling-admin', password: 'autoscaling-admin-password', role: 'superuser'
|
|
user username: 'autoscaling-user', password: 'autoscaling-user-password', role: 'autoscaling'
|
|
}
|
|
|
|
check.dependsOn restTest
|
|
test.enabled = false
|