mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 04:22:13 +08:00
Config Array Syntax (#8204)
* refactor util encryption library so it doesn't have to import log * add util.SplitString to handle space and/or comma-separated config lines * go fmt
This commit is contained in:

committed by
Torkel Ödegaard

parent
d085aaad41
commit
b489e93d94
@ -23,9 +23,14 @@ func TestPluginProxy(t *testing.T) {
|
||||
setting.SecretKey = "password"
|
||||
|
||||
bus.AddHandler("test", func(query *m.GetPluginSettingByIdQuery) error {
|
||||
key, err := util.Encrypt([]byte("123"), "password")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
query.Result = &m.PluginSetting{
|
||||
SecureJsonData: map[string][]byte{
|
||||
"key": util.Encrypt([]byte("123"), "password"),
|
||||
"key": key,
|
||||
},
|
||||
}
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user