keep nil unless values exist
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user