Chore: Rename integration tests (#49438)

* Chore: Rename integration tests

* Remove one Integration

Co-authored-by: Ida Furjesova <ida.furjesova@grafana.com>
This commit is contained in:
Kat Yang
2022-05-24 05:04:03 -04:00
committed by GitHub
parent 7bcc151ae6
commit 50c2b4682a
51 changed files with 69 additions and 69 deletions

View File

@@ -14,7 +14,7 @@ import (
"github.com/grafana/grafana/pkg/services/sqlstore"
)
func TestDashboardFolderDataAccess(t *testing.T) {
func TestIntegrationDashboardFolderDataAccess(t *testing.T) {
t.Run("Testing DB", func(t *testing.T) {
var sqlStore *sqlstore.SQLStore
var folder, dashInRoot, childDash *models.Dashboard

View File

@@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/require"
)
func TestDashboardProvisioningTest(t *testing.T) {
func TestIntegrationDashboardProvisioningTest(t *testing.T) {
sqlStore := sqlstore.InitTestDB(t)
dashboardStore := ProvideDashboardStore(sqlStore)

View File

@@ -24,7 +24,7 @@ import (
"github.com/grafana/grafana/pkg/setting"
)
func TestDashboardDataAccess(t *testing.T) {
func TestIntegrationDashboardDataAccess(t *testing.T) {
var sqlStore *sqlstore.SQLStore
var savedFolder, savedDash, savedDash2 *models.Dashboard
var dashboardStore *DashboardStore
@@ -479,7 +479,7 @@ func TestDashboardDataAccess(t *testing.T) {
})
}
func TestDashboardDataAccessGivenPluginWithImportedDashboards(t *testing.T) {
func TestIntegrationDashboardDataAccessGivenPluginWithImportedDashboards(t *testing.T) {
sqlStore := sqlstore.InitTestDB(t)
dashboardStore := ProvideDashboardStore(sqlStore)
pluginId := "test-app"
@@ -498,7 +498,7 @@ func TestDashboardDataAccessGivenPluginWithImportedDashboards(t *testing.T) {
require.Equal(t, len(query.Result), 2)
}
func TestDashboard_SortingOptions(t *testing.T) {
func TestIntegrationDashboard_SortingOptions(t *testing.T) {
sqlStore := sqlstore.InitTestDB(t)
dashboardStore := ProvideDashboardStore(sqlStore)
@@ -545,7 +545,7 @@ func TestDashboard_SortingOptions(t *testing.T) {
}
func TestDashboard_Filter(t *testing.T) {
func TestIntegrationDashboard_Filter(t *testing.T) {
sqlStore := sqlstore.InitTestDB(t)
dashboardStore := ProvideDashboardStore(sqlStore)
insertTestDashboard(t, dashboardStore, "Alfa", 1, 0, false)

View File

@@ -17,7 +17,7 @@ import (
"github.com/stretchr/testify/require"
)
func TestDashboardAclDataAccess(t *testing.T) {
func TestIntegrationDashboardAclDataAccess(t *testing.T) {
var sqlStore *sqlstore.SQLStore
var currentUser models.User
var savedFolder, childDash *models.Dashboard

View File

@@ -25,7 +25,7 @@ import (
const testOrgID int64 = 1
func TestIntegratedDashboardService(t *testing.T) {
func TestIntegrationIntegratedDashboardService(t *testing.T) {
t.Run("Given saved folders and dashboards in organization A", func(t *testing.T) {
// Basic validation tests

View File

@@ -19,7 +19,7 @@ import (
"github.com/grafana/grafana/pkg/setting"
)
func TestDashboardService(t *testing.T) {
func TestIntegrationDashboardService(t *testing.T) {
t.Run("Dashboard service tests", func(t *testing.T) {
fakeStore := m.FakeDashboardStore{}
defer fakeStore.AssertExpectations(t)

View File

@@ -25,7 +25,7 @@ import (
var orgID = int64(1)
var user = &models.SignedInUser{UserId: 1}
func TestProvideFolderService(t *testing.T) {
func TestIntegrationProvideFolderService(t *testing.T) {
t.Run("should register scope resolvers", func(t *testing.T) {
store := &dashboards.FakeDashboardStore{}
cfg := setting.NewCfg()
@@ -44,7 +44,7 @@ func TestProvideFolderService(t *testing.T) {
})
}
func TestFolderService(t *testing.T) {
func TestIntegrationFolderService(t *testing.T) {
t.Run("Folder service tests", func(t *testing.T) {
store := &dashboards.FakeDashboardStore{}
cfg := setting.NewCfg()