Provisioning: Add back most integration tests; skip flaky ones (#111197)

This commit is contained in:
Stephanie Hingtgen
2025-09-16 14:50:08 -04:00
committed by GitHub
parent 0be2394372
commit c4d89a7a09
5 changed files with 17 additions and 2 deletions
@@ -17,6 +17,9 @@ import (
)
func TestIntegrationProvisioning_ExportUnifiedToRepository(t *testing.T) {
// TODO: fix flaky test
t.Skip("skipping flaky test")
testutil.SkipIntegrationTestInShortMode(t)
helper := runGrafana(t)
@@ -109,6 +109,9 @@ func TestIntegrationProvisioning_DeleteResources(t *testing.T) {
}
func TestIntegrationProvisioning_MoveResources(t *testing.T) {
// TODO: fix flaky test
t.Skip("skipping flaky test")
testutil.SkipIntegrationTestInShortMode(t)
helper := runGrafana(t)
@@ -399,6 +402,9 @@ func TestIntegrationProvisioning_MoveResources(t *testing.T) {
}
func TestIntegrationProvisioning_FilesOwnershipProtection(t *testing.T) {
// TODO: fix flaky test
t.Skip("skipping flaky test")
testutil.SkipIntegrationTestInShortMode(t)
helper := runGrafana(t)
+2 -2
View File
@@ -36,11 +36,11 @@ import (
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/tests/apis"
"github.com/grafana/grafana/pkg/tests/testinfra"
"github.com/grafana/grafana/pkg/tests/testsuite"
)
func TestMain(m *testing.M) {
// TODO: Tests are flaky, so skip them for now
//testsuite.Run(m)
testsuite.Run(m)
}
type provisioningTestHelper struct {
@@ -19,6 +19,9 @@ import (
)
func TestIntegrationProvisioning_PullJobOwnershipProtection(t *testing.T) {
// TODO: fix flaky test
t.Skip("skipping flaky test")
testutil.SkipIntegrationTestInShortMode(t)
helper := runGrafana(t)
@@ -382,6 +382,9 @@ func TestIntegrationProvisioning_CreatingGitHubRepository(t *testing.T) {
}
func TestIntegrationProvisioning_RepositoryLimits(t *testing.T) {
// TODO: fix flaky test
t.Skip("skipping flaky test")
testutil.SkipIntegrationTestInShortMode(t)
helper := runGrafana(t)