2018-02-23 13:31:28 +01:00
|
|
|
apply plugin: 'elasticsearch.standalone-test'
|
2018-11-29 09:43:16 +02:00
|
|
|
apply plugin: 'elasticsearch.test.fixtures'
|
2018-02-23 13:31:28 +01:00
|
|
|
|
|
|
|
dependencies {
|
2020-06-14 22:30:44 +02:00
|
|
|
testImplementation project(xpackModule('security'))
|
|
|
|
testImplementation project(path: xpackModule('security'), configuration: 'testArtifacts')
|
2018-02-23 13:31:28 +01:00
|
|
|
}
|
|
|
|
|
2018-11-29 09:43:16 +02:00
|
|
|
testFixtures.useFixture ":x-pack:test:smb-fixture"
|
|
|
|
|
2018-03-16 10:44:23 -06:00
|
|
|
// add test resources from security, so tests can use example certs
|
2019-04-08 07:05:12 -07:00
|
|
|
processTestResources {
|
2020-07-20 08:52:30 +02:00
|
|
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
2020-07-14 10:25:00 +02:00
|
|
|
from(project(xpackModule('core')).sourceSets.test.resources.srcDirs)
|
2019-11-14 11:01:23 +00:00
|
|
|
from(project(xpackModule('security')).sourceSets.test.resources.srcDirs)
|
2019-04-08 07:05:12 -07:00
|
|
|
}
|
|
|
|
|
2019-09-23 12:48:47 +03:00
|
|
|
// we have to repeat these patterns because the security test resources are effectively in the src of this p
|
2018-02-23 13:31:28 +01:00
|
|
|
forbiddenPatterns {
|
|
|
|
exclude '**/*.key'
|
|
|
|
exclude '**/*.p12'
|
|
|
|
exclude '**/*.der'
|
|
|
|
}
|
|
|
|
|
2019-04-09 11:52:50 -07:00
|
|
|
test {
|
2018-02-23 13:31:28 +01: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 10:44:23 -06:00
|
|
|
include '**/*IT.class'
|
|
|
|
include '**/*Tests.class'
|
2018-02-23 13:31:28 +01:00
|
|
|
}
|
|
|
|
|