smoke-test-plugins-ssl shoudl check if openssl is available

Today some jenkins servers dont have it (e.g. windows), and it constantly fails...

Original commit: elastic/x-pack-elasticsearch@6b561c73e0
This commit is contained in:
Robert Muir 2015-11-30 08:42:25 -05:00
parent 171179d91f
commit 8a22ba0a08
1 changed files with 8 additions and 0 deletions

View File

@ -157,6 +157,14 @@ for (Project subproj : project.rootProject.subprojects) {
}
integTest {
// in some environments, openssl might not be available
try {
int ret = Runtime.getRuntime().exec("openssl version").waitFor();
enabled = (ret == 0);
} catch (IOException unavailable) {
enabled = false;
}
cluster {
// TODO: use some variable here for port number
systemProperty 'es.marvel.agent.exporter.es.hosts', 'https://marvel_export:changeme@localhost:9400'