0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/test
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
..
e2e-api Fixed newsletter includes when adding or editing (#14696) 2022-05-05 11:20:15 +02:00
e2e-browser Added note about installing the E2E browsers 2022-02-22 10:20:40 +01:00
e2e-frontend Removed res.locals.apiVersion 2022-04-28 15:35:28 +01:00
e2e-server Added MRR stats service and endpoint (#14427) 2022-04-08 09:18:04 +02:00
integration Removed backwards compatibility for ghost_head and ghost_foot settings 2022-04-28 15:37:14 +01:00
regression Added test coverage for author reassignment 2022-05-03 14:57:35 +08:00
unit Removed versioning from api-key/admin auth 2022-05-06 08:09:54 +01:00
utils Update dependency @tryghost/url-utils to v3 (#14705) 2022-05-05 16:10:18 +01:00
.eslintignore Updated casper test fixture to latest version 2022-01-25 14:10:53 +00:00
.eslintrc.js
.jshintrc