|
|
|
@ -20,6 +20,7 @@ import ( |
|
|
|
|
"github.com/grafana/grafana/pkg/infra/tracing" |
|
|
|
|
"github.com/grafana/grafana/pkg/plugins" |
|
|
|
|
"github.com/grafana/grafana/pkg/plugins/backendplugin/coreplugin" |
|
|
|
|
"github.com/grafana/grafana/pkg/plugins/config" |
|
|
|
|
pluginClient "github.com/grafana/grafana/pkg/plugins/manager/client" |
|
|
|
|
"github.com/grafana/grafana/pkg/plugins/manager/fakes" |
|
|
|
|
"github.com/grafana/grafana/pkg/services/accesscontrol" |
|
|
|
@ -47,6 +48,7 @@ func TestCallResource(t *testing.T) { |
|
|
|
|
cfg := setting.NewCfg() |
|
|
|
|
cfg.StaticRootPath = staticRootPath |
|
|
|
|
cfg.Azure = &azsettings.AzureSettings{} |
|
|
|
|
pCfg := config.Cfg{} |
|
|
|
|
|
|
|
|
|
coreRegistry := coreplugin.ProvideCoreRegistry(tracing.InitializeTracerForTest(), nil, &cloudwatch.CloudWatchService{}, nil, nil, nil, nil, |
|
|
|
|
nil, nil, nil, nil, testdatasource.ProvideService(), nil, nil, nil, nil, nil, nil) |
|
|
|
@ -54,7 +56,7 @@ func TestCallResource(t *testing.T) { |
|
|
|
|
textCtx := pluginsintegration.CreateIntegrationTestCtx(t, cfg, coreRegistry) |
|
|
|
|
|
|
|
|
|
pcp := plugincontext.ProvideService(cfg, localcache.ProvideService(), textCtx.PluginStore, &datasources.FakeDataSourceService{}, |
|
|
|
|
pluginSettings.ProvideService(db.InitTestDB(t), fakeSecrets.NewFakeSecretsService()), nil, nil) |
|
|
|
|
pluginSettings.ProvideService(db.InitTestDB(t), fakeSecrets.NewFakeSecretsService()), nil, &pCfg) |
|
|
|
|
|
|
|
|
|
srv := SetupAPITestServer(t, func(hs *HTTPServer) { |
|
|
|
|
hs.Cfg = cfg |
|
|
|
|