JAVA-20287 Update article "Spring Cloud Azure Key Vault" (#14488)
* JAVA-20287 Update article "Spring Cloud Azure Key Vault" * Comment the spring-cloud-azure --------- Co-authored-by: timis1 <noreplay@yahoo.com>
This commit is contained in:
+1
-2
@@ -11,7 +11,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||
import com.baeldung.spring.cloud.azure.keyvault.service.KeyVaultAutoconfiguredClient;
|
||||
|
||||
@SpringBootTest(classes = Application.class)
|
||||
public class KeyVaultAutoconfiguredClientIntegrationTest {
|
||||
class KeyVaultAutoconfiguredClientIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
@Qualifier(value = "KeyVaultAutoconfiguredClient")
|
||||
@@ -22,5 +22,4 @@ public class KeyVaultAutoconfiguredClientIntegrationTest {
|
||||
String secretKey = "mySecret";
|
||||
Assertions.assertThrows(NoSuchElementException.class, () -> keyVaultAutoconfiguredClient.getSecret(secretKey));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -12,10 +12,10 @@ spring:
|
||||
endpoint: https://spring-cloud-azure.vault.azure.net/
|
||||
azure:
|
||||
keyvault:
|
||||
vaultUrl: myVaultUrl
|
||||
tenantId: myTenantId
|
||||
clientId: myClientId
|
||||
clientSecret: myClientSecret
|
||||
vaultUrl: {$myVaultUrl}
|
||||
tenantId: {$myTenantId}
|
||||
clientId: {$myClientId}
|
||||
clientSecret: {$myClientSecret}
|
||||
database:
|
||||
secret:
|
||||
value: my-database-secret
|
||||
Reference in New Issue
Block a user