mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:22:13 +08:00
@ -10,8 +10,6 @@ import (
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/grafana/grafana-plugin-sdk-go/backend"
|
||||
"github.com/grafana/grafana-plugin-sdk-go/data"
|
||||
"github.com/grafana/grafana/pkg/bus"
|
||||
"github.com/grafana/grafana/pkg/components/simplejson"
|
||||
"github.com/grafana/grafana/pkg/models"
|
||||
"github.com/grafana/grafana/pkg/services/secrets/fakes"
|
||||
secretsManager "github.com/grafana/grafana/pkg/services/secrets/manager"
|
||||
@ -38,11 +36,6 @@ func TestService(t *testing.T) {
|
||||
secretsService: secretsService,
|
||||
}
|
||||
|
||||
bus.AddHandler("test", func(_ context.Context, query *models.GetDataSourceQuery) error {
|
||||
query.Result = &models.DataSource{Uid: "1", OrgId: 1, Type: "test", JsonData: simplejson.New()}
|
||||
return nil
|
||||
})
|
||||
|
||||
queries := []Query{
|
||||
{
|
||||
RefID: "A",
|
||||
|
Reference in New Issue
Block a user