mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-04 22:40:14 +00:00
Add AI reapprove scope and license tests
This commit is contained in:
parent
c724bb04cf
commit
f7bc69fac2
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue