Fix Test_DecryptSecret

Signed-off-by: Radon Rosborough <rrosborough@plaid.com>
This commit is contained in:
Radon Rosborough 2022-06-30 06:22:58 -07:00 committed by Adam Gardner
parent 74c1f9e9a0
commit c1eb7f0623
1 changed files with 3 additions and 1 deletions

View File

@ -377,9 +377,11 @@ func Test_DecryptSecret(t *testing.T) {
expected := fmt.Sprintf(`Preparing to decrypt secret %v/secretName
Decrypting secret %s/secretName
exec: helm --kube-context dev secrets view %s/secretName
Decrypted %s/secretName into %s
Preparing to decrypt secret %s/secretName
Found secret in cache %s/secretName
`, cwd, cwd, cwd, cwd, cwd)
Decrypted %s/secretName into %s
`, cwd, cwd, cwd, cwd, tmpFilePath, cwd, cwd, cwd, tmpFilePath)
if err != nil {
if _, ok := err.(*os.PathError); ok {
} else {