Ghost/core/test/regression
kirrg001 b25da62cca Ensured defaults when creating resources
no issue

- the model & api layer suffered from missing fields when creating resources
- usually there is only a handful of fields which are required to insert a resource
- the other fields are nullable and/or get defaults assigned
- the API only returned the configured default fields and the fields you have sent to the API
  - this resulted in a response with missing fields
- if you have listend on "created" event, the same happend
  - you received a model with missing fields
- we now set the undefined fields to null on purpose to ensure a full model for both cases

@NOTE:
There is no endpoint to serve webhooks (not for v0.1, not for v2).
Exposing the secret is required if an integration fetches it's api keys and it's webhooks.
The secret is currently un-used and not implemented.
2019-02-07 20:20:10 +01:00
..
api Ensured defaults when creating resources 2019-02-07 20:20:10 +01:00
apps/subscribers Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
exporter Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
importer Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
migrations Added permissions for actions including migration 2019-02-06 18:59:09 +01:00
models Reduced duplicated and slow regression tests 2019-02-05 01:20:16 +00:00
site Reduced duplicated and slow regression tests 2019-02-05 01:20:16 +00:00
update-check Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
README.md Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00

Regression Tests

This folder should contain packages which we test in a cron job once per day. These tests should ensure that we don't break Ghost.

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