Commit 8c69a18
committed
fix: three test failures after Http4s600 lazy-val restore
1. Http4s600: add missing POST /management/webui_props (createWebUiProps)
OBPAPI6_0_0.routes is Nil — all v6 endpoints must be in Http4s600.
The POST endpoint existed in Http4s310 but was never ported to v6.
2. Http4s600: enable v600→v510 bridge for inherited endpoints
OBPAPI6_0_0.routes=Nil means there is no Lift fallback for v6 paths
not implemented in Http4s600. Endpoints inherited from lower versions
(e.g. GET /my/accounts from v3.0.0) must reach their implementation
via the bridge cascade. Enable the pre-existing v600ToV510Bridge.
3. RateLimitingUtil: only increment counters for active limits (limit > 0)
incrementConsumerCounters was incrementing all period counters on every
call regardless of whether a limit was set. When a later test scenario
set per_hour=1, the hour counter already had accumulated calls from
earlier scenarios (per_second, per_minute), causing immediate 429 on
the first call. Skip increment when limit <= 0.1 parent d3e7a36 commit 8c69a18
2 files changed
Lines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1790 | 1790 | | |
1791 | 1791 | | |
1792 | 1792 | | |
| 1793 | + | |
1793 | 1794 | | |
1794 | 1795 | | |
1795 | 1796 | | |
| |||
2249 | 2250 | | |
2250 | 2251 | | |
2251 | 2252 | | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
2252 | 2283 | | |
2253 | 2284 | | |
2254 | 2285 | | |
| |||
8501 | 8532 | | |
8502 | 8533 | | |
8503 | 8534 | | |
8504 | | - | |
| 8535 | + | |
| 8536 | + | |
| 8537 | + | |
| 8538 | + | |
8505 | 8539 | | |
0 commit comments