K8s: Dashboards: Fix error handling (#103929)

This commit is contained in:
Stephanie Hingtgen
2025-04-11 13:31:41 -06:00
committed by GitHub
parent 652c374c4c
commit bba85c1128
2 changed files with 9 additions and 9 deletions
@@ -212,7 +212,7 @@ func runDashboardValidationTests(t *testing.T, ctx TestContext) {
t.Run("reject dashboard with non-existent folder UID", func(t *testing.T) {
nonExistentFolderUID := "non-existent-folder-uid"
_, err := createDashboard(t, adminClient, "Dashboard in Non-existent Folder", &nonExistentFolderUID, nil)
ctx.Helper.EnsureStatusError(err, http.StatusNotFound, "folder not found")
ctx.Helper.EnsureStatusError(err, http.StatusNotFound, "folders.folder.grafana.app \"non-existent-folder-uid\" not found")
})
})