2019-11-01 14:33:11 -04:00
|
|
|
import org.elasticsearch.gradle.info.BuildParams
|
2020-09-17 18:45:12 -04:00
|
|
|
import org.elasticsearch.gradle.util.GradleUtils
|
2019-11-01 14:33:11 -04:00
|
|
|
|
2020-09-09 15:25:41 -04:00
|
|
|
apply plugin: 'elasticsearch.java-rest-test'
|
2018-03-12 23:20:07 -04:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
|
|
|
|
esplugin {
|
2019-11-14 06:01:23 -05:00
|
|
|
description 'Die with dignity plugin'
|
|
|
|
classname 'org.elasticsearch.DieWithDignityPlugin'
|
2018-03-12 23:20:07 -04:00
|
|
|
}
|
|
|
|
|
2020-09-17 18:45:12 -04:00
|
|
|
// let the javaRestTest see the classpath of main
|
|
|
|
GradleUtils.extendSourceSet(project, "main", "javaRestTest", javaRestTest)
|
2020-09-09 15:25:41 -04:00
|
|
|
|
|
|
|
javaRestTest {
|
2019-11-14 06:01:23 -05:00
|
|
|
systemProperty 'tests.security.manager', 'false'
|
|
|
|
systemProperty 'tests.system_call_filter', 'false'
|
2020-09-09 15:25:41 -04:00
|
|
|
nonInputProperties.systemProperty 'log', "${-> testClusters.javaRestTest.singleNode().getServerLog()}"
|
2019-11-14 06:01:23 -05:00
|
|
|
systemProperty 'runtime.java.home', BuildParams.runtimeJavaHome
|
2018-03-12 23:20:07 -04:00
|
|
|
}
|
|
|
|
|
2020-09-09 15:25:41 -04:00
|
|
|
testClusters.javaRestTest {
|
2019-11-14 06:01:23 -05:00
|
|
|
systemProperty "die.with.dignity.test", "whatever"
|
2019-06-28 09:38:17 -04:00
|
|
|
}
|
|
|
|
|
2019-04-09 14:52:50 -04:00
|
|
|
test.enabled = false
|
2018-03-12 23:20:07 -04:00
|
|
|
|