Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Add AI reapprove scope and license tests

rcourtmanf7bc69fac2d6
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.go
index 7ec097dc9b..8f704be499 100644
--- a/internal/api/security_regression_test.go
+++ b/internal/api/security_regression_test.go
@@ -1240,6 +1240,7 @@ func TestAIExecuteMutationEndpointsRequireAIExecuteScope(t *testing.T) {
{method: http.MethodPost, path: "/api/ai/patrol/suppressions", body: `{}`},
{method: http.MethodDelete, path: "/api/ai/patrol/suppressions/rule-1", body: ""},
{method: http.MethodPost, path: "/api/ai/remediation/approve", body: `{}`},
+ {method: http.MethodPost, path: "/api/ai/findings/f-1/reapprove", body: `{}`},
{method: http.MethodPost, path: "/api/ai/approvals/approval-1/approve", body: `{}`},
{method: http.MethodPost, path: "/api/ai/approvals/approval-1/deny", body: `{}`},
}
@@ -2493,6 +2494,7 @@ func TestAILicensedEndpointsRequireLicenseFeature(t *testing.T) {
paths := []string{
"/api/ai/kubernetes/analyze",
"/api/ai/investigate-alert",
+ "/api/ai/findings/f-1/reapprove",
}
for _, path := range paths {