Implement unit test for replaceFromVault step which tests:
Scans text for the pattern {{ vault.get("<VAULT_PATH>", "<VAULT_KEY>") }}, where VAULT_PATH defines the fully qualified path in vault of the secret and VAULT_KEY the key to lookup of the specified secret
Calls the withVault step from the HashiCorp Vault Plugin to lookup the secrets in the vault for each scanned pattern:
Implement unit test for replaceFromVault step which tests:
{{ vault.get("<VAULT_PATH>", "<VAULT_KEY>") }}
, whereVAULT_PATH
defines the fully qualified path in vault of the secret andVAULT_KEY
the key to lookup of the specified secretwithVault
step from the HashiCorp Vault Plugin to lookup the secrets in the vault for each scanned pattern: