mirror of
https://github.com/grafana/grafana.git
synced 2025-02-09 23:16:16 -06:00
Storage: Test mode 2 dual writer in playlist tests (#87938)
Add mode 2 feature flag to playlist tests
This commit is contained in:
parent
9e29c215c3
commit
4867fd3069
@ -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,
|
||||
},
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user