From 4867fd30695f1fd09c8e28b929f32d000be90516 Mon Sep 17 00:00:00 2001 From: Arati R <33031346+suntala@users.noreply.github.com> Date: Thu, 16 May 2024 10:39:30 +0200 Subject: [PATCH] Storage: Test mode 2 dual writer in playlist tests (#87938) Add mode 2 feature flag to playlist tests --- pkg/tests/apis/playlist/playlist_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/tests/apis/playlist/playlist_test.go b/pkg/tests/apis/playlist/playlist_test.go index 42eae928440..50b7db5424e 100644 --- a/pkg/tests/apis/playlist/playlist_test.go +++ b/pkg/tests/apis/playlist/playlist_test.go @@ -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, }, })