[v9.3.x] Chore: All tests under pkg/tests should be integration tests (#60071)

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

(cherry picked from commit 2db8ed9441)

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-12-12 07:58:42 +00:00
committed by GitHub
parent ea2a7a4068
commit 5fa57d2c1e
13 changed files with 111 additions and 31 deletions
@@ -17,7 +17,9 @@ import (
"github.com/stretchr/testify/require"
)
func TestAlertmanagerConfigurationIsTransactional(t *testing.T) {
func TestIntegrationAlertmanagerConfigurationIsTransactional(t *testing.T) {
testinfra.SQLiteIntegrationTest(t)
dir, path := testinfra.CreateGrafDir(t, testinfra.GrafanaOpts{
DisableLegacyAlerting: true,
EnableUnifiedAlerting: true,
@@ -129,7 +131,9 @@ func TestAlertmanagerConfigurationIsTransactional(t *testing.T) {
}
}
func TestAlertmanagerConfigurationPersistSecrets(t *testing.T) {
func TestIntegrationAlertmanagerConfigurationPersistSecrets(t *testing.T) {
testinfra.SQLiteIntegrationTest(t)
dir, path := testinfra.CreateGrafDir(t, testinfra.GrafanaOpts{
DisableLegacyAlerting: true,
EnableUnifiedAlerting: true,