2018-01-27 00:48:30 -05:00
|
|
|
Project idpFixtureProject = xpackProject("test:idp-fixture")
|
|
|
|
evaluationDependsOn(idpFixtureProject.path)
|
|
|
|
|
2018-01-20 17:43:00 -05:00
|
|
|
apply plugin: 'elasticsearch.standalone-test'
|
|
|
|
apply plugin: 'elasticsearch.vagrantsupport'
|
|
|
|
|
|
|
|
dependencies {
|
2018-01-27 00:48:30 -05:00
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'runtime')
|
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
|
|
testCompile project(path: xpackModule('security'), configuration: 'testArtifacts')
|
2018-01-20 17:43:00 -05:00
|
|
|
testCompile 'com.google.jimfs:jimfs:1.1'
|
|
|
|
}
|
|
|
|
|
|
|
|
processTestResources {
|
|
|
|
if (project.rootProject.vagrantSupported) {
|
|
|
|
dependsOn "idpFixture"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
test {
|
|
|
|
resources {
|
2018-01-27 00:48:30 -05:00
|
|
|
srcDirs += idpFixtureProject.file("src/main/resources/provision/generated")
|
|
|
|
srcDirs += project(xpackModule('security')).file('src/test/resources')
|
2018-01-20 17:43:00 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task idpFixture {
|
2018-01-27 00:48:30 -05:00
|
|
|
dependsOn "vagrantCheckVersion", "virtualboxCheckVersion", idpFixtureProject.up
|
2018-01-20 17:43:00 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
if (project.rootProject.vagrantSupported) {
|
|
|
|
test.dependsOn idpFixture
|
2018-01-27 00:48:30 -05:00
|
|
|
test.finalizedBy idpFixtureProject.halt
|
2018-01-20 17:43:00 -05:00
|
|
|
} else {
|
|
|
|
test.enabled = false
|
|
|
|
}
|
|
|
|
|
|
|
|
namingConventions {
|
|
|
|
// integ tests use Tests instead of IT
|
|
|
|
skipIntegTestInDisguise = true
|
|
|
|
}
|
|
|
|
|
|
|
|
forbiddenPatterns {
|
|
|
|
exclude '**/*.der'
|
|
|
|
exclude '**/*.p12'
|
|
|
|
exclude '**/*.key'
|
|
|
|
}
|
|
|
|
|
|
|
|
thirdPartyAudit.excludes = [
|
2018-01-20 19:53:26 -05:00
|
|
|
// uses internal java api: sun.misc.Unsafe
|
|
|
|
'com.google.common.cache.Striped64',
|
|
|
|
'com.google.common.cache.Striped64$1',
|
|
|
|
'com.google.common.cache.Striped64$Cell',
|
|
|
|
'com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator',
|
|
|
|
'com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1',
|
|
|
|
'com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper',
|
|
|
|
'com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper$1',
|
|
|
|
// missing
|
|
|
|
'com.ibm.icu.lang.UCharacter'
|
2018-01-20 17:43:00 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
test {
|
|
|
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
|
|
|
include '**/*Tests.class'
|
|
|
|
}
|