0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/unit/server
Hannah Wolfe 6dc3f1bf56
Removed versioning from api-key/admin auth
refs: https://github.com/TryGhost/Toolbox/issues/229

- our api-key audience handling code is still relying on internal api version config
- the regex used is also buggy (it expects 3 parts, which isn't true without versions) and doesn't always match, in which case it can cause the tests to hang
- we already had some very similar code in the version-rewrite middleware which is also validates exact values for version and api type
- moved this code into a util inside api-version-compatibility-service
- using this code, all the tests still pass as is, but when I start to adjust them to cover more cases, none hang (test changes coming in a separate commit)
2022-05-06 08:09:54 +01:00
..
adapters Added ability to delete existing files through storage adapters 2021-11-09 16:07:23 +04:00
data Revert "Dropped nullable from subscribe events' newsletter id (#14598)" 2022-04-27 20:01:32 +01:00
lib Removed unnecessary use of rewire 2022-03-24 19:32:06 +00:00
models Updated newsletter sender name column as nullable (#14476) 2022-04-14 17:42:20 +05:30
services Removed versioning from api-key/admin auth 2022-05-06 08:09:54 +01:00
web Removed res.locals.apiVersion 2022-04-28 15:35:28 +01:00
notify.test.js Fixed notify library tests 2021-12-06 08:20:39 +00:00
overrides.test.js Set global Luxon timezone override to UTC 2021-10-20 09:19:29 +02:00