2021-04-09 15:28:18 -04:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* The OpenSearch Contributors require contributions made to
|
|
|
|
* this file be licensed under the Apache-2.0 license or a
|
|
|
|
* compatible open source license.
|
|
|
|
*
|
|
|
|
* Modifications Copyright OpenSearch Contributors. See
|
|
|
|
* GitHub history for details.
|
|
|
|
*/
|
|
|
|
|
2021-03-08 13:06:46 -05:00
|
|
|
import org.opensearch.gradle.info.BuildParams
|
|
|
|
import org.opensearch.gradle.util.GradleUtils
|
2019-11-01 14:33:11 -04:00
|
|
|
|
2021-03-08 13:06:46 -05:00
|
|
|
apply plugin: 'opensearch.java-rest-test'
|
2021-03-18 19:14:19 -04:00
|
|
|
apply plugin: 'opensearch.opensearchplugin'
|
2018-03-12 23:20:07 -04:00
|
|
|
|
2021-03-18 19:14:19 -04:00
|
|
|
opensearchplugin {
|
2019-11-14 06:01:23 -05:00
|
|
|
description 'Die with dignity plugin'
|
2021-03-08 13:06:46 -05:00
|
|
|
classname 'org.opensearch.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
|