Update to Vault 1.6
Closes gh-604
This commit is contained in:
@@ -21,6 +21,7 @@ env:
|
||||
- VAULT_VER=1.2.4
|
||||
- VAULT_VER=1.3.4
|
||||
- VAULT_VER=1.5.3
|
||||
- VAULT_VER=1.6.0
|
||||
- EDITION=enterprise
|
||||
|
||||
before_install:
|
||||
|
||||
@@ -548,12 +548,17 @@ class VaultTransitTemplateIntegrationTests extends IntegrationTestSupport {
|
||||
|
||||
Ciphertext tampered = decryptedTwo.with(encryptedOne.getContext());
|
||||
|
||||
List<VaultDecryptionResult> decrypted = this.transitOperations.decrypt("mykey",
|
||||
Arrays.asList(encryptedOne, tampered));
|
||||
try {
|
||||
List<VaultDecryptionResult> decrypted = this.transitOperations.decrypt("mykey",
|
||||
Arrays.asList(encryptedOne, tampered));
|
||||
|
||||
assertThat(decrypted.get(0).get()).isEqualTo(one);
|
||||
assertThat(decrypted.get(1).isSuccessful()).isEqualTo(false);
|
||||
assertThat(decrypted.get(1).getCause()).isInstanceOf(VaultException.class);
|
||||
assertThat(decrypted.get(0).get()).isEqualTo(one);
|
||||
assertThat(decrypted.get(1).isSuccessful()).isEqualTo(false);
|
||||
assertThat(decrypted.get(1).getCause()).isInstanceOf(VaultException.class);
|
||||
}
|
||||
catch (VaultException e) {
|
||||
assertThat(e).hasMessageContaining("error"); // Vault 1.6 behavior is different
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
set -o errexit
|
||||
|
||||
EDITION="${EDITION:-oss}"
|
||||
VAULT_OSS="${VAULT_OSS:-1.5.3}"
|
||||
VAULT_OSS="${VAULT_OSS:-1.6.0}"
|
||||
VAULT_ENT="${VAULT_ENT:-1.5.3}"
|
||||
UNAME=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||
VERBOSE=false
|
||||
|
||||
Reference in New Issue
Block a user