Commit d73504d
committed
fix: apply consistency policy to ReadRelationships and supply permissions in integration tests
- RouteSpiceDBQuery.loadRelations() now sets the configured consistency policy on the
ReadRelationshipsRequest; previously no consistency was set, causing the route
relationship written in @BeforeAll to be invisible under FULLY_CONSISTENT tests.
- SpiceDBIntegrationTest permission check tests now pass the expected permission key
in UserSubjectContext so the client-side short-circuit in PermissionSpiceDBQuery
passes before hitting SpiceDB.
Fixes 3 failing integration tests on the Java 21 CI job.1 parent 1730809 commit d73504d
2 files changed
Lines changed: 8 additions & 3 deletions
File tree
- src
- main/java/com/frontegg/sdk/entitlements/internal
- test/java/com/frontegg/sdk/entitlements/integration
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
141 | 144 | | |
142 | | - | |
| 145 | + | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
| |||
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
151 | | - | |
| 154 | + | |
| 155 | + | |
152 | 156 | | |
153 | | - | |
| 157 | + | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| |||
0 commit comments