Encryption: Fix tests

This commit is contained in:
Emil Tullstedt
2020-10-15 14:27:31 +02:00
parent 92c1b1e4c6
commit 3c152dc5bd
6 changed files with 50 additions and 38 deletions
+2
View File
@@ -7,11 +7,13 @@ import (
var ErrNotInitialized = errors.New("function is not initialized")
// Decrypt decrypts a payload with a given secret.
// Real implementation in github.com/grafana/grafana/pkg/services/secrets
var Decrypt = func(_ []byte) ([]byte, error) {
return nil, ErrNotInitialized
}
// Encrypt encrypts a payload with a given secret.
// Real implementation in github.com/grafana/grafana/pkg/services/secrets
var Encrypt = func(_ []byte) ([]byte, error) {
return nil, ErrNotInitialized
}