Test against 0.8.2

This commit is contained in:
Stefan Kalscheuer 2017-09-08 19:21:41 +02:00
parent 43511dc20b
commit 89f7581d17
2 changed files with 6 additions and 8 deletions

View File

@ -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'

View File

@ -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;