2018-02-23 07:31:28 -05:00
|
|
|
apply plugin: 'elasticsearch.standalone-test'
|
2018-11-29 02:43:16 -05:00
|
|
|
apply plugin: 'elasticsearch.test.fixtures'
|
2018-02-23 07:31:28 -05:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile project(xpackModule('security'))
|
|
|
|
testCompile project(path: xpackModule('security'), configuration: 'testArtifacts')
|
|
|
|
}
|
|
|
|
|
2018-11-29 02:43:16 -05:00
|
|
|
testFixtures.useFixture ":x-pack:test:smb-fixture"
|
|
|
|
|
2018-03-16 12:44:23 -04:00
|
|
|
// add test resources from security, so tests can use example certs
|
2019-04-08 10:05:12 -04:00
|
|
|
processTestResources {
|
|
|
|
from(project(xpackModule('security')).sourceSets.test.resources.srcDirs)
|
|
|
|
}
|
|
|
|
|
2019-04-05 02:01:56 -04:00
|
|
|
compileTestJava.options.compilerArgs << "-Xlint:-rawtypes,-unchecked"
|
2018-02-23 07:31:28 -05:00
|
|
|
|
2019-09-23 05:48:47 -04:00
|
|
|
// we have to repeat these patterns because the security test resources are effectively in the src of this p
|
2018-02-23 07:31:28 -05:00
|
|
|
forbiddenPatterns {
|
|
|
|
exclude '**/*.key'
|
|
|
|
exclude '**/*.p12'
|
|
|
|
exclude '**/*.der'
|
|
|
|
}
|
|
|
|
|
2019-04-09 14:52:50 -04:00
|
|
|
test {
|
2018-02-23 07:31:28 -05:00
|
|
|
/*
|
|
|
|
* We have to disable setting the number of available processors as tests in the same JVM randomize processors and will step on each
|
|
|
|
* other if we allow them to set the number of available processors as it's set-once in Netty.
|
|
|
|
*/
|
|
|
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
2018-03-16 12:44:23 -04:00
|
|
|
include '**/*IT.class'
|
|
|
|
include '**/*Tests.class'
|
2018-02-23 07:31:28 -05:00
|
|
|
}
|
|
|
|
|