diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-02 11:40:37 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-02 11:40:37 -0600 |
| commit | 2a37de4a34552feac221771278236fb23f8e83c0 (patch) | |
| tree | 23479c2a4b5c01962d6078646c9ddc05f4d63d4d /pkg/rpc | |
| parent | 3f54e2fc59f21029813863491b37e39bb6015115 (diff) | |
refactor: update cedar entities to match hierarchy defined in csv files
Diffstat (limited to 'pkg/rpc')
| -rw-r--r-- | pkg/rpc/server_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/rpc/server_test.go b/pkg/rpc/server_test.go index 8f333a5b..0871173b 100644 --- a/pkg/rpc/server_test.go +++ b/pkg/rpc/server_test.go @@ -51,11 +51,11 @@ func TestServer(t *testing.T) { assert.True(t, reply.Result) }) - t.Run("returns gid://User/1:read_projects:gid://Organization/1", func(t *testing.T) { + t.Run("returns gid://User/1:read:gid://Organization/2", func(t *testing.T) { reply, err := client.Allowed(t.Context(), &AllowRequest{ Subject: "gid://User/1", - Permission: "read_projects", - Resource: "gid://Organization/1", + Permission: "read", + Resource: "gid://Organization/2", }) require.NoError(t, err) assert.True(t, reply.Result) |
