keep nil unless values exist

This commit is contained in:
Ryan McKinley
2025-12-03 12:43:44 +03:00
parent df4f58fa75
commit a82253e63a
+6 -3
View File
@@ -140,7 +140,6 @@ func TestIntegrationFoldersApp(t *testing.T) {
grafanarest.Mode4,
}
for _, modeDw := range modes {
t.Run(fmt.Sprintf("with dual write (unified storage, mode %v)", modeDw), func(t *testing.T) {
doFolderTests(t, apis.NewK8sTestHelper(t, testinfra.GrafanaOpts{
AppModeProduction: true,
@@ -1254,8 +1253,12 @@ func TestIntegrationFoldersGetAPIEndpointK8S(t *testing.T) {
requestToAnotherOrg: true,
},
}
for mode := 0; mode <= 4; mode++ {
for _, mode := range []grafanarest.DualWriterMode{
// grafanarest.Mode0, // legacy only
// grafanarest.Mode2, // write both, read legacy
grafanarest.Mode3, // write both, read unified
// grafanarest.Mode4,
} {
t.Run(fmt.Sprintf("Mode_%d", mode), func(t *testing.T) {
modeDw := grafanarest.DualWriterMode(mode)