From 89f7581d1763c8b4c319633b87ecad56ac4bd9d8 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Fri, 8 Sep 2017 19:21:41 +0200 Subject: [PATCH] Test against 0.8.2 --- .travis.yml | 6 +++--- .../stklcode/jvault/connector/HTTPVaultConnectorTest.java | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 52a1e34..a7ac3d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,9 +14,9 @@ addons: env: - PATH=$PATH:. before_script: - - wget https://releases.hashicorp.com/vault/0.8.1/vault_0.8.1_linux_amd64.zip - - unzip vault_0.8.1_linux_amd64.zip - - rm vault_0.8.1_linux_amd64.zip + - wget https://releases.hashicorp.com/vault/0.8.2/vault_0.8.2_linux_amd64.zip + - unzip vault_0.8.2_linux_amd64.zip + - rm vault_0.8.2_linux_amd64.zip cache: directories: - '$HOME/.m2/repository' diff --git a/src/test/java/de/stklcode/jvault/connector/HTTPVaultConnectorTest.java b/src/test/java/de/stklcode/jvault/connector/HTTPVaultConnectorTest.java index 35a145a..c867a96 100644 --- a/src/test/java/de/stklcode/jvault/connector/HTTPVaultConnectorTest.java +++ b/src/test/java/de/stklcode/jvault/connector/HTTPVaultConnectorTest.java @@ -48,7 +48,7 @@ import static org.junit.Assume.*; * @since 0.1 */ public class HTTPVaultConnectorTest { - private static String VAULT_VERISON = "0.8.1"; // the vault version this test is supposed to run against + private static String VAULT_VERISON = "0.8.2"; // the vault version this test is supposed to run against private static String KEY = "81011a8061e5c028bd0d9503eeba40bd9054b9af0408d080cb24f57405c27a61"; private static String TOKEN_ROOT = "d1bd50e2-587b-6e68-d80b-a9a507625cb7"; private static String USER_VALID = "validUser"; @@ -978,8 +978,7 @@ public class HTTPVaultConnectorTest { bw = new BufferedWriter(new FileWriter(configFile)); bw.write(config.toString()); } catch (IOException e) { - e.printStackTrace(); - throw new IllegalStateException("Unable to generate config file."); + throw new IllegalStateException("Unable to generate config file.", e); } finally { try { if (bw != null) @@ -993,8 +992,7 @@ public class HTTPVaultConnectorTest { try { vaultProcess = Runtime.getRuntime().exec("vault server -config " + configFile.toString()); } catch (IOException e) { - e.printStackTrace(); - throw new IllegalStateException("Unable to start vault. Make sure vault binary is in your executable path."); + throw new IllegalStateException("Unable to start vault. Make sure vault binary is in your executable path.", e); } return config;