Plugins: Update plugin fakes package name (#112503)
update plugin fakes package name
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
"github.com/grafana/grafana/pkg/plugins"
|
||||
"github.com/grafana/grafana/pkg/plugins/backendplugin"
|
||||
"github.com/grafana/grafana/pkg/plugins/log"
|
||||
"github.com/grafana/grafana/pkg/plugins/manager/fakes"
|
||||
"github.com/grafana/grafana/pkg/plugins/manager/pluginfakes"
|
||||
)
|
||||
|
||||
func TestProcessManager_Start(t *testing.T) {
|
||||
@@ -62,7 +62,7 @@ func TestProcessManager_Start(t *testing.T) {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
bp := fakes.NewFakeBackendPlugin(tc.managed)
|
||||
bp := pluginfakes.NewFakeBackendPlugin(tc.managed)
|
||||
p := createPlugin(t, bp, func(plugin *plugins.Plugin) {
|
||||
plugin.Backend = tc.backend
|
||||
plugin.Error = tc.Error
|
||||
@@ -85,7 +85,7 @@ func TestProcessManager_Start(t *testing.T) {
|
||||
t.Run("Won't stop the plugin if the context is cancelled", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
bp := fakes.NewFakeBackendPlugin(true)
|
||||
bp := pluginfakes.NewFakeBackendPlugin(true)
|
||||
p := createPlugin(t, bp, func(plugin *plugins.Plugin) {
|
||||
plugin.Backend = true
|
||||
})
|
||||
@@ -113,7 +113,7 @@ func TestProcessManager_Stop(t *testing.T) {
|
||||
|
||||
pluginID := "test-datasource"
|
||||
|
||||
bp := fakes.NewFakeBackendPlugin(true)
|
||||
bp := pluginfakes.NewFakeBackendPlugin(true)
|
||||
p := createPlugin(t, bp, func(plugin *plugins.Plugin) {
|
||||
plugin.ID = pluginID
|
||||
plugin.Backend = true
|
||||
@@ -134,7 +134,7 @@ func TestProcessManager_ManagedBackendPluginLifecycle(t *testing.T) {
|
||||
|
||||
t.Run("When plugin process is killed, the process is restarted", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
bp := fakes.NewFakeBackendPlugin(true)
|
||||
bp := pluginfakes.NewFakeBackendPlugin(true)
|
||||
p := createPlugin(t, bp, func(plugin *plugins.Plugin) {
|
||||
plugin.Backend = true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user