mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 02:33:32 +00:00
Extend proxy admin denial coverage
This commit is contained in:
@@ -1943,6 +1943,9 @@ func TestProxyAuthNonAdminDeniedAdminEndpoints(t *testing.T) {
|
||||
{method: http.MethodPost, path: "/api/config/nodes/test-config", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/config/nodes/test-connection", body: `{}`},
|
||||
{method: http.MethodPut, path: "/api/config/nodes/node-1", body: `{}`},
|
||||
{method: http.MethodDelete, path: "/api/config/nodes/node-1", body: ``},
|
||||
{method: http.MethodPost, path: "/api/config/nodes/node-1/test", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/config/nodes/node-1/refresh-cluster", body: `{}`},
|
||||
{method: http.MethodGet, path: "/api/system/settings", body: ""},
|
||||
{method: http.MethodPost, path: "/api/system/settings/update", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/security/reset-lockout", body: `{}`},
|
||||
@@ -1953,6 +1956,9 @@ func TestProxyAuthNonAdminDeniedAdminEndpoints(t *testing.T) {
|
||||
{method: http.MethodGet, path: "/api/ai/debug/context", body: ""},
|
||||
{method: http.MethodPost, path: "/api/ai/execute", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/ai/execute/stream", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/ai/kubernetes/analyze", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/ai/investigate-alert", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/ai/run-command", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/ai/remediation/execute", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/ai/remediation/rollback", body: `{}`},
|
||||
{method: http.MethodPost, path: "/api/ai/patrol/run", body: `{}`},
|
||||
|
||||
Reference in New Issue
Block a user