Chore: All tests under pkg/tests should be integration tests (#59521)

* Chore: All tests under pkg/tests should be integrationtests

* run alerting integration tests only for sqlite
This commit is contained in:
Marcus Efraimsson
2022-12-09 08:11:56 +01:00
committed by GitHub
parent 896cb9ddce
commit 2db8ed9441
13 changed files with 111 additions and 31 deletions
@@ -29,7 +29,11 @@ import (
"github.com/grafana/grafana/pkg/tests/testinfra"
)
func TestDashboardQuota(t *testing.T) {
func TestIntegrationDashboardQuota(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
// enable quota and set low dashboard quota
// Setup Grafana and its Database
dashboardQuota := int64(1)
@@ -114,7 +118,11 @@ func createUser(t *testing.T, store *sqlstore.SQLStore, cmd user.CreateUserComma
return u.ID
}
func TestUpdatingProvisionionedDashboards(t *testing.T) {
func TestIntegrationUpdatingProvisionionedDashboards(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
// Setup Grafana and its Database
dir, path := testinfra.CreateGrafDir(t, testinfra.GrafanaOpts{
DisableAnonymous: true,