Code for [BAEL-455]
This commit is contained in:
+2
-2
@@ -14,7 +14,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
import org.springframework.vault.annotation.VaultPropertySource;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
@@ -26,11 +25,12 @@ public class VaultSampleApplicationLiveTest {
|
||||
@Autowired
|
||||
DataSource datasource;
|
||||
|
||||
|
||||
@Test
|
||||
public void whenGenericBackendEnabled_thenEnvHasAccessToVaultSecrets() {
|
||||
|
||||
String fooValue = env.getProperty("foo");
|
||||
assertEquals("bar", fooValue);
|
||||
assertEquals("test-bar", fooValue);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#spring.cloud.vault.token=b93d1b0d-15b5-f69e-d311-352a65fa7bc8
|
||||
spring.cloud.vault.token=b93d1b0d-15b5-f69e-d311-352a65fa7bc8
|
||||
|
||||
logging.level.org.springframework=INFO
|
||||
Reference in New Issue
Block a user