Remove folderid service test (#80433)
* Remove FolderID from service tests * Add models * Add folderID pack to publicdashboard tests * Remove folderID from dashboard tests * Remove folderID from folders * Remove folderID from ngalert tests * Remove nolint comment * Add back some tests after rebase
This commit is contained in:
@@ -44,8 +44,7 @@ func TestIntegrationDashboardFolderStore(t *testing.T) {
|
||||
t.Run("GetFolderByTitle should find the folder", func(t *testing.T) {
|
||||
result, err := folderStore.GetFolderByTitle(context.Background(), orgId, title)
|
||||
require.NoError(t, err)
|
||||
// nolint:staticcheck
|
||||
require.Equal(t, folder1.ID, result.ID)
|
||||
require.Equal(t, folder1.UID, result.UID)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -58,8 +57,7 @@ func TestIntegrationDashboardFolderStore(t *testing.T) {
|
||||
|
||||
t.Run("should return folder by UID", func(t *testing.T) {
|
||||
d, err := folderStore.GetFolderByUID(context.Background(), orgId, folder.UID)
|
||||
// nolint:staticcheck
|
||||
require.Equal(t, folder.ID, d.ID)
|
||||
require.Equal(t, folder.UID, d.UID)
|
||||
require.NoError(t, err)
|
||||
})
|
||||
t.Run("should not find dashboard", func(t *testing.T) {
|
||||
@@ -83,8 +81,7 @@ func TestIntegrationDashboardFolderStore(t *testing.T) {
|
||||
|
||||
t.Run("should return folder by ID", func(t *testing.T) {
|
||||
d, err := folderStore.GetFolderByID(context.Background(), orgId, folder.ID)
|
||||
// nolint:staticcheck
|
||||
require.Equal(t, folder.ID, d.ID)
|
||||
require.Equal(t, folder.UID, d.UID)
|
||||
require.NoError(t, err)
|
||||
})
|
||||
t.Run("should not find dashboard", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user