Chore: fix apiserver integration tests (#83724)

Co-authored-by: Todd Treece <todd.treece@grafana.com>
This commit is contained in:
Ryan McKinley
2024-02-29 14:58:49 -08:00
committed by GitHub
co-authored by Todd Treece
parent d7b031f318
commit 74115f1f08
8 changed files with 85 additions and 22 deletions
+17 -3
View File
@@ -9,9 +9,14 @@ import (
"github.com/grafana/grafana/pkg/services/featuremgmt"
"github.com/grafana/grafana/pkg/tests/apis"
"github.com/grafana/grafana/pkg/tests/testinfra"
"github.com/grafana/grafana/pkg/tests/testsuite"
)
func TestFoldersApp(t *testing.T) {
func TestMain(m *testing.M) {
testsuite.Run(m)
}
func TestIntegrationFoldersApp(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
@@ -51,10 +56,19 @@ func TestFoldersApp(t *testing.T) {
]
},
{
"name": "folders/children",
"name": "folders/access",
"singularName": "",
"namespaced": true,
"kind": "FolderInfoList",
"kind": "FolderAccessInfo",
"verbs": [
"get"
]
},
{
"name": "folders/count",
"singularName": "",
"namespaced": true,
"kind": "DescendantCounts",
"verbs": [
"get"
]