Stars: support running stars in mode 5 (#111754)

This commit is contained in:
Ryan McKinley
2025-09-29 22:28:48 +03:00
committed by GitHub
parent 8638ef5cba
commit 0a06183d84
14 changed files with 585 additions and 44 deletions
+11 -6
View File
@@ -26,14 +26,19 @@ func TestIntegrationStars(t *testing.T) {
for _, mode := range []grafanarest.DualWriterMode{
grafanarest.Mode0,
grafanarest.Mode2, // anything past 2 will fail
grafanarest.Mode2,
grafanarest.Mode3,
grafanarest.Mode5,
} {
flags := []string{featuremgmt.FlagGrafanaAPIServerWithExperimentalAPIs}
if mode > grafanarest.Mode2 {
flags = append(flags, featuremgmt.FlagKubernetesStars)
}
helper := apis.NewK8sTestHelper(t, testinfra.GrafanaOpts{
AppModeProduction: false, // required for experimental APIs
DisableAnonymous: true,
EnableFeatureToggles: []string{
featuremgmt.FlagGrafanaAPIServerWithExperimentalAPIs,
},
AppModeProduction: false, // required for experimental APIs
DisableAnonymous: true,
EnableFeatureToggles: flags,
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
"dashboards.dashboard.grafana.app": {
DualWriterMode: mode,