mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
This commit re-enables the OpenLDAP tests that were previously running against a one-off instance in AWS but now run against a vagrant fixture. There were some IntegTests that would run against the OpenLDAP instance randomly but with this change they no longer run against OpenLDAP. This is ok as the functionality that is tested by these has coverage elsewhere. relates elastic/x-pack-elasticsearch#1823 Original commit: elastic/x-pack-elasticsearch@ac9bc82297
44 lines
1.1 KiB
Groovy
44 lines
1.1 KiB
Groovy
apply plugin: 'elasticsearch.build'
|
|
|
|
Map<String, String> vagrantEnvVars = [
|
|
'VAGRANT_CWD' : "${project.projectDir.absolutePath}",
|
|
'VAGRANT_VAGRANTFILE' : 'Vagrantfile',
|
|
'VAGRANT_PROJECT_DIR' : "${project.projectDir.absolutePath}"
|
|
]
|
|
|
|
String box = "openldap"
|
|
|
|
task update(type: org.elasticsearch.gradle.vagrant.VagrantCommandTask) {
|
|
command 'box'
|
|
subcommand 'update'
|
|
boxName box
|
|
environmentVars vagrantEnvVars
|
|
}
|
|
|
|
task up(type: org.elasticsearch.gradle.vagrant.VagrantCommandTask) {
|
|
command 'up'
|
|
args '--provision', '--provider', 'virtualbox'
|
|
boxName box
|
|
environmentVars vagrantEnvVars
|
|
dependsOn update
|
|
}
|
|
|
|
task halt(type: org.elasticsearch.gradle.vagrant.VagrantCommandTask) {
|
|
command 'halt'
|
|
boxName box
|
|
environmentVars vagrantEnvVars
|
|
}
|
|
|
|
task destroy(type: org.elasticsearch.gradle.vagrant.VagrantCommandTask) {
|
|
command 'destroy'
|
|
args '-f'
|
|
boxName box
|
|
environmentVars vagrantEnvVars
|
|
dependsOn halt
|
|
}
|
|
|
|
thirdPartyAudit.enabled = false
|
|
licenseHeaders.enabled = false
|
|
test.enabled = false
|
|
jarHell.enabled = false
|