parent
be9c98b355
commit
78023be58b
|
|
@ -504,9 +504,12 @@ func Test_DecryptSecret(t *testing.T) {
|
|||
|
||||
expected := fmt.Sprintf(`Preparing to decrypt secret %v/secretName
|
||||
Decrypting secret %s/secretName
|
||||
exec: helm --kubeconfig config --kube-context dev secrets decrypt %s/secretName
|
||||
Decrypted %s/secretName into %s
|
||||
Preparing to decrypt secret %s/secretName
|
||||
Found secret in cache %s/secretName
|
||||
`, 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 {
|
||||
|
|
@ -549,7 +552,9 @@ func Test_DecryptSecretWithGotmpl(t *testing.T) {
|
|||
|
||||
expected := fmt.Sprintf(`Preparing to decrypt secret %v/secretName.yaml.gotmpl
|
||||
Decrypting secret %s/secretName.yaml.gotmpl
|
||||
`, cwd, cwd)
|
||||
exec: helm --kubeconfig config --kube-context dev secrets decrypt %s/secretName.yaml.gotmpl
|
||||
Decrypted %s/secretName.yaml.gotmpl into %s
|
||||
`, cwd, cwd, cwd, cwd, tmpFilePath)
|
||||
if err != nil {
|
||||
t.Errorf("Error: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue