diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-02 18:44:34 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-02 18:44:34 -0600 |
| commit | 064d14bfb1be7a3ed758eae2200eb73c5250e5fa (patch) | |
| tree | 80e7026bcb6e79a19197145a32a5275a8344b949 /pkg/rpc/server_test.go | |
| parent | 96f7120703a46bcd26bf0bf140d7127adc1ade4a (diff) | |
refactor: switch from casbin to cedar
Diffstat (limited to 'pkg/rpc/server_test.go')
| -rw-r--r-- | pkg/rpc/server_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/rpc/server_test.go b/pkg/rpc/server_test.go index 66a177d5..da60f86a 100644 --- a/pkg/rpc/server_test.go +++ b/pkg/rpc/server_test.go @@ -43,9 +43,9 @@ func TestServer(t *testing.T) { t.Run("allows alice:view:jane_vacation", func(t *testing.T) { reply, err := client.Allowed(t.Context(), &AllowRequest{ - Subject: "gid://User/alice", + Subject: "gid://example/User/alice", Permission: "view", - Resource: "gid://Album/jane_vacation", + Resource: "gid://example/Album/jane_vacation", }) require.NoError(t, err) assert.True(t, reply.Result) @@ -53,9 +53,9 @@ func TestServer(t *testing.T) { t.Run("allows gid://User/1 read gid://Organization/2", func(t *testing.T) { reply, err := client.Allowed(t.Context(), &AllowRequest{ - Subject: "gid://User/1", + Subject: "gid://example/User/1", Permission: "read", - Resource: "gid://Organization/2", + Resource: "gid://example/Organization/2", }) require.NoError(t, err) assert.True(t, reply.Result) |
