Chore: Add skeleton for background plugin installer (#91743)

This commit is contained in:
Andres Martinez Gotor
2024-08-12 16:39:31 +02:00
committed by GitHub
parent 25dbb32cea
commit d342e76f63
10 changed files with 84 additions and 0 deletions
@@ -0,0 +1,20 @@
package plugininstaller
import (
"testing"
"github.com/grafana/grafana/pkg/services/featuremgmt"
)
// Test if the service is disabled
func TestService_IsDisabled(t *testing.T) {
// Create a new service
s := &Service{
features: featuremgmt.WithFeatures(featuremgmt.FlagBackgroundPluginInstaller),
}
// Check if the service is disabled
if s.IsDisabled() {
t.Error("Service should be enabled")
}
}