2017-08-04 09:44:08 -06:00
|
|
|
apply plugin: 'elasticsearch.standalone-test'
|
2019-03-12 23:54:23 +02:00
|
|
|
apply plugin: 'elasticsearch.test.fixtures'
|
2017-08-04 09:44:08 -06:00
|
|
|
|
|
|
|
dependencies {
|
2018-08-21 20:03:28 -04:00
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'default')
|
2018-01-26 21:48:30 -08:00
|
|
|
testCompile project(path: xpackModule('security'), configuration: 'testArtifacts')
|
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2017-08-04 09:44:08 -06:00
|
|
|
}
|
|
|
|
|
2019-09-23 12:48:47 +03:00
|
|
|
testFixtures.useFixture ":x-pack:test:idp-fixture", "openldap"
|
2017-08-04 09:44:08 -06:00
|
|
|
|
2019-03-12 23:54:23 +02:00
|
|
|
Project idpFixtureProject = xpackProject("test:idp-fixture")
|
2018-05-10 07:35:23 -06:00
|
|
|
String outputDir = "${project.buildDir}/generated-resources/${project.name}"
|
2018-02-08 11:42:25 +11:00
|
|
|
task copyIdpTrust(type: Copy) {
|
2019-03-12 23:54:23 +02:00
|
|
|
from idpFixtureProject.file('openldap/certs/ca.jks');
|
|
|
|
from idpFixtureProject.file('openldap/certs/ca_server.pem');
|
2018-02-08 11:42:25 +11:00
|
|
|
into outputDir
|
|
|
|
}
|
2019-03-12 23:54:23 +02:00
|
|
|
project.sourceSets.test.output.dir(outputDir, builtBy: copyIdpTrust)
|