Storage: Test mode 2 dual writer in playlist tests (#87938)

Add mode 2 feature flag to playlist tests
This commit is contained in:
Arati R 2024-05-16 10:39:30 +02:00 committed by GitHub
parent 9e29c215c3
commit 4867fd3069
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,6 +85,7 @@ func TestIntegrationPlaylist(t *testing.T) {
}))
})
// #TODO add equivalent tests for the other modes
t.Run("with dual write (file)", func(t *testing.T) {
doPlaylistTests(t, apis.NewK8sTestHelper(t, testinfra.GrafanaOpts{
AppModeProduction: true,
@ -92,6 +93,7 @@ func TestIntegrationPlaylist(t *testing.T) {
APIServerStorageType: "file", // write the files to disk
EnableFeatureToggles: []string{
featuremgmt.FlagKubernetesPlaylists, // Required so that legacy calls are also written
featuremgmt.FlagDualWritePlaylistsMode2,
},
}))
})
@ -104,6 +106,7 @@ func TestIntegrationPlaylist(t *testing.T) {
EnableFeatureToggles: []string{
featuremgmt.FlagUnifiedStorage,
featuremgmt.FlagKubernetesPlaylists, // Required so that legacy calls are also written
featuremgmt.FlagDualWritePlaylistsMode2,
},
}))
})
@ -118,6 +121,7 @@ func TestIntegrationPlaylist(t *testing.T) {
APIServerStorageType: "etcd", // requires etcd running on localhost:2379
EnableFeatureToggles: []string{
featuremgmt.FlagKubernetesPlaylists, // Required so that legacy calls are also written
featuremgmt.FlagDualWritePlaylistsMode2,
},
})