0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/regression/api/v3/admin
Naz d9ddc2db6a Added extra validation for some settings of array type
refs https://github.com/TryGhost/Team/issues/754
refs a7dec233ba

- Additional validation protects from problems like the ones in refed commit from even getting through to the database.
- At the moment only used notificatons and couple more settings to ensure they are arrays when passed into the API. This is to avoid making big change in settings straight away - this is a problematic area which needs cautious approach.
- Ideally in the future the list of settings to check the "array" type (and other types) should be automatically generated based on the default-settings.json (or whatever way we define settings in the db a that moment)
- There's an ugly code-tripplication going on in this change. This is a separate topic that will be addressed once we work on API cleanup.
2021-06-28 14:26:18 +04:00
..
authentication_spec.js
db_spec.js Moved acceptance test utils into own file 2021-06-01 13:17:45 +01:00
identities_spec.js Updated tests to reflect jwks-rsa v2 changes 2021-04-16 09:58:47 +01:00
images_spec.js
labels_spec.js
members_signin_url_spec.js
members_spec.js Removed tests dependent on stripe mocking 2021-05-24 11:26:45 +01:00
notifications_spec.js
pages_spec.js
posts_spec.js 🐛 Fixed frontmatter-related validation error 2021-05-13 12:14:05 +04:00
redirects_spec.js
schedules_spec.js Moved acceptance test utils into own file 2021-06-01 13:17:45 +01:00
settings_spec.js Added extra validation for some settings of array type 2021-06-28 14:26:18 +04:00
site_spec.js Added regression tests for Admin API /site endpoints 2021-03-09 22:10:27 +13:00
slack_spec.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
users_spec.js Moved acceptance test utils into own file 2021-06-01 13:17:45 +01:00
utils.js Refactored test utils "post" properties 2021-05-13 15:41:27 +04:00
webhooks_spec.js Fixed fixture creation order in webhooks tests 2021-03-04 10:56:58 +01:00