Commit 8d08d7f
test: migrate TestCRUD off subject IDs
Ory Network rejects relation tuples carrying a subject_id:
rpc error: code = InvalidArgument
desc = subject_id is not supported; please migrate to subject sets
The rejection is unconditional — plain strings, UUIDs and namespaced
IDs are all refused, under legacy and OPL namespaces alike — so the
tuples this test writes are subject sets now.
The `ory is allowed s r n o1` assertion is dropped rather than adapted.
`is allowed` takes a plain subject and sends it as a subject_id, so the
server rejects the check with the same error: the command is unusable
against Ory Network, not merely deprecated, and no reachable tuple
makes it answer true — every permission chain has to terminate in a
subject ID. Asserting the broken behaviour here would only cement it,
so the comment records what happened and the command needs its own fix.
Note that CI on this branch is expected to stay red until #457 lands:
master's browser login is rate limited, and the packages that fail on
that are unrelated to this change. The failure fixed here has been
present all along and only surfaces in the runs where relationtuples
gets past its login at all.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tg5VWFUb7824qkrooUdvBA1 parent d34a356 commit 8d08d7f
1 file changed
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
100 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
101 | 109 | | |
102 | 110 | | |
103 | 111 | | |
| |||
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
0 commit comments