diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-23 15:34:11 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-23 15:34:11 -0600 |
| commit | 4e3bfcf1e641d41cb7f02bad7a8fd8759e5fb6ad (patch) | |
| tree | 8c7e30d5b7c31ac72ed1865606da4130e35c08ce /pkg | |
| parent | 94ded54208dd4fe73b11a6224d52192558f3463f (diff) | |
test: allow authenticated user the ability to create a new sparkle
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/authz/server_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/authz/server_test.go b/pkg/authz/server_test.go index ffc00c5..6740eda 100644 --- a/pkg/authz/server_test.go +++ b/pkg/authz/server_test.go @@ -70,6 +70,7 @@ func TestServer(t *testing.T) { {status: codes.OK, http: &auth.AttributeContext_HttpRequest{Method: "GET", Path: "/logo.png"}}, {status: codes.OK, http: &auth.AttributeContext_HttpRequest{Method: "GET", Path: "/signout"}}, {status: codes.OK, http: &auth.AttributeContext_HttpRequest{Method: "GET", Path: "/sparkles"}}, + {status: codes.OK, http: &auth.AttributeContext_HttpRequest{Method: "POST", Path: "/sparkles", Headers: loggedInHeaders}}, {status: codes.OK, http: &auth.AttributeContext_HttpRequest{Method: "POST", Path: "/sparkles/restore"}}, {status: codes.PermissionDenied, http: &auth.AttributeContext_HttpRequest{Method: "GET", Path: "/dashboard"}}, {status: codes.PermissionDenied, http: &auth.AttributeContext_HttpRequest{Method: "POST", Path: "/sparkles"}}, |
