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
|
2018-02-23 07:31:28 -05:00
|
|
|
sourceSets.test.resources.srcDirs(project(xpackModule('security')).sourceSets.test.resources.srcDirs)
|
2018-03-16 12:44:23 -04:00
|
|
|
compileTestJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
2018-02-23 07:31:28 -05:00
|
|
|
|
2018-03-16 12:44:23 -04:00
|
|
|
// we have to repeat these patterns because the security test resources are effectively in the src of this project
|
2018-02-23 07:31:28 -05:00
|
|
|
forbiddenPatterns {
|
|
|
|
exclude '**/*.key'
|
|
|
|
exclude '**/*.p12'
|
|
|
|
exclude '**/*.der'
|
|
|
|
}
|
|
|
|
|
2018-12-19 01:25:20 -05:00
|
|
|
unitTest {
|
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
|
|
|
}
|
|
|
|
|