Encryption: Fix tests
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user