Ghost/ghost
Naz 26b0bbc623 Added a test suite for OPTIONS requests
refs https://github.com/TryGhost/Toolbox/issues/461

- The codebase has ambiguous behavior with OPTIONS request. Adding tests covering edge cases for all possible variations of OPTIONS responses is the first step to solving cahceability of these requests.
- The obvious question if you look into the changeset itself would also be: "WTF did you do with test suite naming? What are these changes in admin and click tracking suites? You having a bad day Naz?". The answer is "yes"  (╯°□°)╯︵ ┻━┻
- On a serious note. I've introduced multiple hacks here that should be fixed:
1. Forced test suite execution order for options request - extreme blasphemy. This was last resort decision. I went deep into trying to fixup the server shutdown in the "admin" test suite, which cascaded into failing "click tracking" suite, which has shortcomings on it's own (see notes left in that suite)
2. Exposed "ghostServer" from the e2e-framework's "getAgentsWithFrontend" method. Exposing ghostServer to be able to shut it down (or do other manipulations) was one of the pitfalls we had in the previous test utils, which ended up plaguing the test codebase. Ideally the framework should only be exposing the agents and the rest would happen behind the scenes.
- To fix the hacks above I've raised a cleanup issue (https://github.com/TryGhost/Toolbox/issues/471). I'm very sorry for this mess. The issue at hand has very little to do with fixing the e2e framework, so leaving things "as is".
2022-11-02 13:43:30 +08:00
..
adapter-manager Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
admin Merged v5.22.4 into main 2022-11-02 07:09:23 +07:00
api-framework Removed bluebird from api-framework module (#15685) 2022-10-31 19:30:18 +00:00
api-version-compatibility-service Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
audience-feedback Updated feedback button links (#15701) 2022-10-26 18:04:11 +02:00
bootstrap-socket Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
constants Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
core Added a test suite for OPTIONS requests 2022-11-02 13:43:30 +08:00
custom-theme-settings-service Added linking between member and subscription created events (#15693) 2022-10-27 11:44:19 +02:00
data-generator Added option to use existing data when generating demo data 2022-10-27 16:10:02 +01:00
domain-events Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
email-analytics-provider-mailgun Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
email-analytics-service Updated @tryghost dependencies (#15631) 2022-10-24 10:30:40 +07:00
email-content-generator Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
express-dynamic-redirects Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
extract-api-key Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
html-to-plaintext Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
job-manager Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
link-redirects Added X-Robots-Tag header to redirect responses (#15700) 2022-10-27 10:07:36 +07:00
link-replacer Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
link-tracking Added linking between member and subscription created events (#15693) 2022-10-27 11:44:19 +02:00
magic-link Updated @tryghost dependencies (#15631) 2022-10-24 10:30:40 +07:00
mailgun-client Update dependency mailgun.js to v8.0.2 2022-10-25 20:20:41 +00:00
member-analytics-service Updated @tryghost dependencies (#15631) 2022-10-24 10:30:40 +07:00
member-attribution Disabled attribution calculation when tracking is disabled (#15710) 2022-10-27 21:10:03 +05:30
member-events Added linking between member and subscription created events (#15693) 2022-10-27 11:44:19 +02:00
members-analytics-ingress Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
members-api 🐛 Fixed checkout sessions when using Offers 2022-11-02 00:11:33 +07:00
members-csv Removed bluebird from misc packages (#15676) 2022-10-30 15:16:10 +00:00
members-events-service Added linking between member and subscription created events (#15693) 2022-10-27 11:44:19 +02:00
members-importer Fixed rule for import background job detection 2022-10-31 16:31:55 +08:00
members-ssr Updated @tryghost dependencies (#15631) 2022-10-24 10:30:40 +07:00
minifier Updated @tryghost dependencies (#15631) 2022-10-24 10:30:40 +07:00
mw-api-version-mismatch Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
mw-cache-control Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
mw-error-handler Updated @tryghost dependencies (#15631) 2022-10-24 10:30:40 +07:00
mw-session-from-token Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
mw-update-user-last-seen Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
mw-vhost Update dependency supertest to v6.3.1 2022-10-26 02:54:43 +00:00
oembed-service Updated @tryghost dependencies (#15631) 2022-10-24 10:30:40 +07:00
offers Added linking between member and subscription created events (#15693) 2022-10-27 11:44:19 +02:00
package-json Removed bluebird from misc packages (#15676) 2022-10-30 15:16:10 +00:00
payments 🐛 Fixed errors with Stripe Checkout (#15749) 2022-11-02 02:18:30 +07:00
portal Released Portal v2.19.5 2022-11-02 00:32:35 +07:00
referrers Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
security Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
session-service Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
settings-path-manager Updated @tryghost dependencies (#15631) 2022-10-24 10:30:40 +07:00
staff-service Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
stats-service Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
stripe Updated @tryghost dependencies (#15631) 2022-10-24 10:30:40 +07:00
tiers 🐛 Fixed Tier description not being set (#15741) 2022-11-01 16:25:55 +07:00
update-check-service Removed bluebird from misc packages (#15676) 2022-10-30 15:16:10 +00:00
verification-trigger Fixed verification trigger usage of Event Repository 2022-11-01 13:00:42 +07:00
version-notifications-data-service Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00