mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-12 07:55:24 +00:00
* add QA-style Rest tests to index-lifecycle This PR introduces a `qa` module within the index-lifecycle project. the idea is to have both complex policies tested, as well as policies with isolated/singular actions. So far, only tests with policies containing one action are implemented. Following Actions have implemented tests in this commit - AllocateAction - DeleteAction - ForceMergeAction - ReadOnlyAction - ReplicasAction tests to be added later - RolloverAction - ShrinkAction * respond to review and enable integTests * fix dependsOn fiasco * fix license * update to new proj structure * move to new integTest with x-pack-core as module * remove unused imports * update to use module instead of plugin
35 lines
1016 B
Groovy
35 lines
1016 B
Groovy
evaluationDependsOn(xpackModule('core'))
|
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
|
name 'x-pack-index-lifecycle'
|
|
description 'Elasticsearch Expanded Pack Plugin - Index Lifecycle'
|
|
classname 'org.elasticsearch.xpack.indexlifecycle.IndexLifecycle'
|
|
extendedPlugins = ['x-pack-core']
|
|
hasNativeController false
|
|
requiresKeystore true
|
|
}
|
|
archivesBaseName = 'x-pack-index-lifecycle'
|
|
|
|
dependencies {
|
|
compileOnly "org.elasticsearch.plugin:x-pack-core:${version}"
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
}
|
|
|
|
integTestCluster {
|
|
numNodes = 2
|
|
clusterName = 'index-lifecycle'
|
|
setting 'xpack.security.enabled', 'false'
|
|
setting 'xpack.watcher.enabled', 'false'
|
|
setting 'xpack.monitoring.enabled', 'false'
|
|
setting 'xpack.ml.enabled', 'false'
|
|
setting 'xpack.index_lifecycle.enabled', 'true'
|
|
setting 'indices.lifecycle.poll_interval', '500ms'
|
|
module project(xpackModule('core'))
|
|
}
|
|
|
|
run {
|
|
plugin xpackModule('core')
|
|
}
|