2018-01-27 00:48:30 -05:00
|
|
|
Project idpFixtureProject = xpackProject("test:idp-fixture")
|
|
|
|
evaluationDependsOn(idpFixtureProject.path)
|
|
|
|
|
2017-08-04 11:44:08 -04: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('security'), configuration: 'testArtifacts')
|
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2017-08-04 11:44:08 -04:00
|
|
|
}
|
|
|
|
|
2018-01-20 17:43:00 -05:00
|
|
|
processTestResources {
|
|
|
|
if (project.rootProject.vagrantSupported) {
|
|
|
|
dependsOn "openLdapFixture"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
test {
|
|
|
|
resources {
|
2018-01-27 00:48:30 -05:00
|
|
|
srcDirs += idpFixtureProject.file("src/main/resources/provision/generated")
|
2018-01-20 17:43:00 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-04 11:44:08 -04:00
|
|
|
task openLdapFixture {
|
2018-01-27 00:48:30 -05:00
|
|
|
dependsOn "vagrantCheckVersion", "virtualboxCheckVersion", idpFixtureProject.up
|
2017-08-04 11:44:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
if (project.rootProject.vagrantSupported) {
|
|
|
|
test.dependsOn openLdapFixture
|
2018-01-27 00:48:30 -05:00
|
|
|
test.finalizedBy idpFixtureProject.halt
|
2017-08-04 11:44:08 -04:00
|
|
|
} else {
|
|
|
|
test.enabled = false
|
|
|
|
}
|
|
|
|
|
|
|
|
namingConventions {
|
|
|
|
// integ tests use Tests instead of IT
|
|
|
|
skipIntegTestInDisguise = true
|
|
|
|
}
|