2018-01-20 00:30:17 -05:00
|
|
|
apply plugin: 'elasticsearch.standalone-test'
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(xpackModule('security'))
|
|
|
|
testImplementation project(path: xpackModule('security'), configuration: 'testArtifacts')
|
|
|
|
testImplementation 'com.google.jimfs:jimfs:1.1'
|
2020-04-08 02:20:17 -04:00
|
|
|
testRuntimeOnly 'com.google.guava:guava:16.0.1'
|
2018-01-20 00:30:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// add test resources from security, so certificate tool tests can use example certs
|
2019-04-08 10:05:12 -04:00
|
|
|
processTestResources {
|
|
|
|
from(project(xpackModule('security')).sourceSets.test.resources.srcDirs)
|
|
|
|
}
|
2018-01-20 00:30:17 -05:00
|
|
|
|
2018-01-20 00:57:43 -05:00
|
|
|
// we have to repeate these patterns because the security test resources are effectively in the src of this project
|
|
|
|
forbiddenPatterns {
|
|
|
|
exclude '**/*.key'
|
|
|
|
exclude '**/*.p12'
|
|
|
|
exclude '**/*.der'
|
|
|
|
}
|
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
// these are just tests, no need to audit
|
|
|
|
thirdPartyAudit.enabled = false
|