mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-29 20:10:21 +00:00
Cover RBAC mutations in permission denial tests
This commit is contained in:
parent
895a7e07e2
commit
4e3811e69e
1 changed files with 6 additions and 0 deletions
|
|
@ -2542,8 +2542,14 @@ func TestPermissionProtectedEndpointsDenyWhenAuthorizerBlocks(t *testing.T) {
|
|||
{method: http.MethodGet, path: "/api/audit/event-1/verify", body: ""},
|
||||
{method: http.MethodGet, path: "/api/admin/roles", body: ""},
|
||||
{method: http.MethodGet, path: "/api/admin/roles/", body: ""},
|
||||
{method: http.MethodPost, path: "/api/admin/roles", body: `{"id":"role-1","name":"Role 1"}`},
|
||||
{method: http.MethodPut, path: "/api/admin/roles/role-1", body: `{"id":"role-1","name":"Role 1"}`},
|
||||
{method: http.MethodDelete, path: "/api/admin/roles/role-1", body: ""},
|
||||
{method: http.MethodGet, path: "/api/admin/users", body: ""},
|
||||
{method: http.MethodGet, path: "/api/admin/users/", body: ""},
|
||||
{method: http.MethodPut, path: "/api/admin/users/alice/roles", body: `{"roleIds":["role-1"]}`},
|
||||
{method: http.MethodPost, path: "/api/admin/users/alice/roles", body: `{"roleIds":["role-1"]}`},
|
||||
{method: http.MethodGet, path: "/api/admin/users/alice/permissions", body: ""},
|
||||
{method: http.MethodGet, path: "/api/admin/reports/generate", body: ""},
|
||||
{method: http.MethodPost, path: "/api/admin/reports/generate-multi", body: `{}`},
|
||||
{method: http.MethodGet, path: "/api/admin/webhooks/audit", body: ""},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue