Fix playlist tests (#92837)

This commit is contained in:
Claudiu Dragalina-Paraipan 2024-09-05 15:41:28 +03:00 committed by GitHub
parent 87f4df4bc3
commit 085aaec958
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 12 deletions

View File

@ -15,7 +15,7 @@ const (
VERSION = "v0alpha1"
APIVERSION = GROUP + "/" + VERSION
RESOURCE = "playlists"
GROUPRESOURCE = GROUP + "/" + RESOURCE
RESOURCEGROUP = RESOURCE + "." + GROUP
)
var PlaylistResourceInfo = utils.NewResourceInfo(GROUP, VERSION,

View File

@ -94,7 +94,7 @@ func TestIntegrationPlaylist(t *testing.T) {
DisableAnonymous: true,
APIServerStorageType: "file", // write the files to disk
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode0,
},
},
@ -110,7 +110,7 @@ func TestIntegrationPlaylist(t *testing.T) {
DisableAnonymous: true,
APIServerStorageType: "file", // write the files to disk
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode1,
},
},
@ -126,7 +126,7 @@ func TestIntegrationPlaylist(t *testing.T) {
DisableAnonymous: true,
APIServerStorageType: "file", // write the files to disk
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode2,
},
},
@ -142,7 +142,7 @@ func TestIntegrationPlaylist(t *testing.T) {
DisableAnonymous: true,
APIServerStorageType: "file", // write the files to disk
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode3,
},
},
@ -161,7 +161,7 @@ func TestIntegrationPlaylist(t *testing.T) {
featuremgmt.FlagKubernetesPlaylists, // Required so that legacy calls are also written
},
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode0,
},
},
@ -186,7 +186,7 @@ func TestIntegrationPlaylist(t *testing.T) {
featuremgmt.FlagKubernetesPlaylists, // Required so that legacy calls are also written
},
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode2,
},
},
@ -202,7 +202,7 @@ func TestIntegrationPlaylist(t *testing.T) {
featuremgmt.FlagKubernetesPlaylists, // Required so that legacy calls are also written
},
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode3,
},
},
@ -218,7 +218,7 @@ func TestIntegrationPlaylist(t *testing.T) {
DisableAnonymous: true,
APIServerStorageType: "etcd", // requires etcd running on localhost:2379
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode0,
},
},
@ -250,7 +250,7 @@ func TestIntegrationPlaylist(t *testing.T) {
featuremgmt.FlagKubernetesPlaylists, // Required so that legacy calls are also written
},
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode1,
},
},
@ -279,7 +279,7 @@ func TestIntegrationPlaylist(t *testing.T) {
featuremgmt.FlagKubernetesPlaylists, // Required so that legacy calls are also written
},
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode2,
},
},
@ -308,7 +308,7 @@ func TestIntegrationPlaylist(t *testing.T) {
featuremgmt.FlagKubernetesPlaylists, // Required so that legacy calls are also written
},
UnifiedStorageConfig: map[string]setting.UnifiedStorageConfig{
playlistv0alpha1.GROUPRESOURCE: {
playlistv0alpha1.RESOURCEGROUP: {
DualWriterMode: grafanarest.Mode3,
},
},