From 4e3bfcf1e641d41cb7f02bad7a8fd8759e5fb6ad Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 23 May 2025 15:34:11 -0600 Subject: test: allow authenticated user the ability to create a new sparkle --- pkg/authz/server_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/authz') 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"}}, -- cgit v1.2.3