0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/regression
Naz 06dd9bac59 Refactored post resource Admin API test utils
refs https://github.com/TryGhost/Team/issues/687

- The approach of generating validation properties using `/server/data/schema` package's tables object is prone to leaking unwanted database fields into API responses
- This refactor takes a tiny step into direction of relying on "allowlist" approach for properties in the API response resources.
- Apart from solving the described property leak problem it also moves toward decoupling tests from `/core/server` dependencies!
2021-05-12 18:15:54 +04:00
..
api Refactored post resource Admin API test utils 2021-05-12 18:15:54 +04:00
exporter Added stripe_products and stripe_prices tables (#12858) 2021-04-08 20:41:00 +05:30
importer Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
migrations Fixed editors not being able to read labels when assigning member segments (#12934) 2021-05-07 10:51:44 +01:00
models Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
settings Added routes_hash setting (#12171) 2020-09-07 21:54:55 +12:00
site Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
update-check Fixed linting error 2021-01-14 18:39:27 +13:00
README.md Updated acceptance&regression test suite readmes 2021-01-22 16:42:02 +13:00

Regression Tests

These tests should ensure that we don't break Ghost for all available APIs.

The goal is that most of these packages use Ghost's API's to test behaviours, otherwise transform the tests into unit tests.