Merge branch '3.1.x'
This commit is contained in:
@@ -46,7 +46,7 @@ public class SpringVaultEnvironmentRepository extends AbstractVaultEnvironmentRe
|
||||
super(request, watch, properties);
|
||||
this.keyValueTemplate = keyValueTemplate;
|
||||
if (properties.getKvVersion() == 2 && StringUtils.hasText(properties.getPathToKey())) {
|
||||
path = "data/" + properties.getPathToKey() + "/";
|
||||
path = properties.getPathToKey() + "/";
|
||||
}
|
||||
this.objectMapper = new ObjectMapper();
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class SpringVaultEnvironmentRepositoryTests {
|
||||
private void defaultKeyTest(String myPathKey, int version) {
|
||||
String path = "";
|
||||
if (StringUtils.hasText(myPathKey) && version == 2) {
|
||||
path = "data/" + myPathKey + "/";
|
||||
path = myPathKey + "/";
|
||||
}
|
||||
VaultKeyValueOperations keyValueTemplate = mock(VaultKeyValueOperations.class);
|
||||
when(keyValueTemplate.get(path + "myapp")).thenReturn(withVaultResponse("foo", "bar"));
|
||||
|
||||
Reference in New Issue
Block a user