Browse Source

feat(plugins): fixed failing api test

Torkel Ödegaard 9 years ago
parent
commit
bd2e1ef67e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/api/pluginproxy/pluginproxy_test.go

+ 2 - 2
pkg/api/pluginproxy/pluginproxy_test.go

@@ -22,8 +22,8 @@ func TestPluginProxy(t *testing.T) {
 
 
 		setting.SecretKey = "password"
 		setting.SecretKey = "password"
 
 
-		bus.AddHandler("test", func(query *m.GetAppSettingByAppIdQuery) error {
-			query.Result = &m.AppSettings{
+		bus.AddHandler("test", func(query *m.GetPluginSettingByIdQuery) error {
+			query.Result = &m.PluginSetting{
 				SecureJsonData: map[string][]byte{
 				SecureJsonData: map[string][]byte{
 					"key": util.Encrypt([]byte("123"), "password"),
 					"key": util.Encrypt([]byte("123"), "password"),
 				},
 				},