kolaente
8f920c2db0
test(models): cover v2 API token route collection and verbs
...
Adds unit coverage for isV2Path, stripAPIVersion, getRouteDetail's
v2 verb mapping (POST->create, PUT->update, GET list/one,
DELETE->delete), and the v2 shadow-table write path.
Also caught a latent bug: AutoPatch synthesises a PATCH counterpart
for every PUT route in /api/v2, and both map to the 'update'
permission. The PATCH write clobbered the PUT write (last-write-wins
on the map), which would have silently broken PUT-with-API-token.
Fixed by skipping PATCH during collection — PUT remains the
authoritative update verb for tokens. JWT clients keep PATCH (it's
not gated on this table).
2026-05-07 11:40:55 +02:00
..
2026-04-20 18:55:06 +00:00
2026-04-20 18:55:06 +00:00
2026-04-20 18:55:06 +00:00
2026-05-07 11:40:55 +02:00
2026-05-07 11:40:55 +02:00
2026-03-30 12:28:15 +00:00
2026-03-30 12:28:15 +00:00
2026-03-30 12:28:15 +00:00
2026-04-09 15:44:04 +00:00
2026-05-01 14:44:10 +00:00
2026-03-30 12:09:53 +00:00
2026-05-01 14:44:10 +00:00
2026-05-01 14:44:10 +00:00
2026-05-01 14:44:10 +00:00
2026-05-01 14:44:10 +00:00
2026-04-09 16:07:48 +00:00
2026-04-09 09:26:04 +00:00
2026-03-23 16:23:15 +01:00
2026-04-09 10:45:34 +00:00
2026-04-09 10:45:34 +00:00
2026-02-25 11:03:02 +01:00
2026-04-09 15:43:04 +00:00
2026-02-25 11:03:02 +01:00
2026-04-09 15:43:04 +00:00
2026-04-09 15:38:07 +00:00
2026-04-09 15:38:07 +00:00
2026-04-09 09:26:04 +00:00
2026-02-17 18:01:05 +01:00
2026-03-08 16:03:47 +01:00
2025-12-10 12:39:05 +01:00
2026-03-27 23:05:04 +00:00
2026-04-09 15:44:04 +00:00
2026-04-23 13:30:51 +02:00
2026-03-27 23:05:04 +00:00
2025-12-04 10:16:16 +01:00
2026-04-09 16:22:56 +00:00
2026-02-25 11:03:02 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:56:25 +01:00
2026-02-25 11:56:25 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:03:02 +01:00
2026-03-03 12:46:34 +01:00
2026-04-11 17:20:53 +00:00
2026-02-25 11:03:02 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:03:02 +01:00
2026-03-23 12:06:16 +00:00
2026-04-20 18:55:06 +00:00
2026-03-02 08:35:35 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:03:02 +01:00
2026-04-09 07:25:57 +00:00
2026-04-09 07:25:57 +00:00
2026-02-25 10:30:25 +01:00
2026-02-25 11:03:02 +01:00
2026-03-27 23:05:04 +00:00
2026-02-25 11:03:02 +01:00
2026-03-03 12:46:34 +01:00
2026-04-09 16:22:56 +00:00
2026-05-06 16:08:16 +02:00
2026-02-26 16:09:13 +01:00
2026-02-26 16:09:13 +01:00
2026-04-28 14:16:51 +00:00
2026-04-28 14:16:51 +00:00
2026-03-03 12:46:34 +01:00
2026-03-29 00:43:58 +01:00
2026-03-04 17:20:26 +01:00
2026-04-09 16:22:56 +00:00
2026-03-08 19:45:53 +01:00
2026-03-08 19:45:53 +01:00
2026-04-09 07:25:57 +00:00
2026-04-09 07:25:57 +00:00
2026-04-05 12:20:35 +00:00
2026-03-03 12:46:34 +01:00
2026-03-08 19:45:53 +01:00
2026-03-08 19:45:53 +01:00
2026-02-25 12:15:28 +01:00
2026-04-02 16:30:23 +00:00
2025-11-27 15:14:42 +01:00
2026-04-11 20:44:28 +00:00
2026-04-11 20:44:28 +00:00
2026-04-11 20:44:28 +00:00
2026-04-20 18:55:06 +00:00
2026-03-23 12:06:16 +00:00
2026-04-20 18:55:06 +00:00
2026-03-03 12:46:34 +01:00
2026-05-06 16:08:16 +02:00
2026-05-01 14:44:10 +00:00
2026-05-01 14:44:10 +00:00
2026-03-08 19:45:53 +01:00
2026-04-09 09:26:04 +00:00