diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-02 16:29:28 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-02 16:29:28 -0600 |
| commit | 67d3e252f0f9338c099726f88e03d73eb9d73594 (patch) | |
| tree | c13008d9d3939ab1eb01e3b74c88ee7488a4bcc6 | |
| parent | 998420bbab94f9b36b52e8be5e0d94df2ebd2e90 (diff) | |
test: fix name in test
| -rw-r--r-- | pkg/policies/allowed_test.go (renamed from pkg/policies/policies_test.go) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/policies/policies_test.go b/pkg/policies/allowed_test.go index d44d049d..7963e8df 100644 --- a/pkg/policies/policies_test.go +++ b/pkg/policies/allowed_test.go @@ -15,7 +15,7 @@ func build(f func(*cedar.Request)) *cedar.Request { Action: cedar.NewEntityUID("HttpMethod", "GET"), Resource: cedar.NewEntityUID("HttpPath", "/"), Context: cedar.NewRecord(cedar.RecordMap{ - "host": cedar.String("idp.example.com"), + "host": cedar.String("example.com"), }), } f(request) @@ -90,7 +90,7 @@ func TestAllowed(t *testing.T) { build(func(r *cedar.Request) { r.Principal = gid.NewEntityUID("gid://example/User/1") r.Action = cedar.NewEntityUID("HttpMethod", "POST") - r.Resource = cedar.NewEntityUID("HttpPath", "/twirp/authx.rpc.Ability/Allowed") + r.Resource = cedar.NewEntityUID("HttpPath", "/twirp/authz.rpc.Ability/Allowed") r.Context = cedar.NewRecord(cedar.RecordMap{ "host": cedar.String("idp.example.com"), }) |
