Ghost/test/unit/server/services
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
..
adapter-manager Added local media storage adapter 2021-11-03 00:33:28 +13:00
api-version-compatibility Removed versioning from api-key/admin auth 2022-05-06 08:09:54 +01:00
auth Updated newsletter fixtures to remove nullable sender name (#14479) 2022-04-14 23:45:59 +05:30
mail Extracted email-content-generator into a package 2022-05-04 17:28:09 +08:00
mega Added newsletter info to email unsubscribe url (#14693) 2022-05-05 11:00:24 +05:30
members Fixed urlUtils usage in member config provider 2022-05-03 21:07:04 +01:00
newsletters Fixed newsletter includes when adding or editing (#14696) 2022-05-05 11:20:15 +02:00
notifications Replace error handler middleware with @tryghost/mw-error-handler (#13879) 2021-12-14 15:18:46 +00:00
permissions Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
posts Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
redirects Slimmed down redirects test suites 2021-11-26 06:18:36 +13:00
route-settings Removed sync method from route settings loader 2022-04-28 15:37:09 +01:00
settings Added test coverage to settings bread service 2022-04-22 16:31:56 +08:00
stripe Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
themes Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
url Removed theme engines API versioning concept 2022-04-28 15:35:27 +01:00
webhooks Fixed overly specific assertion 2022-05-03 11:59:50 +01:00
labs.test.js Added ability for themes to define custom settings (#13661) 2021-10-22 15:02:16 +01:00
slack.test.js Replaced schema.isPost in slack service /w custom fn 2022-04-05 14:24:42 +01:00
xmlrpc.test.js Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00