Ghost/test/regression/api/v2/admin
Fabien O'Carroll 8880cc82c7 Refactored usage of the pre v4 "slack" setting
refs https://github.com/TryGhost/Ghost/issues/10318

- Change/compatibility table for this changeset:

Importer

+ "slack_username"  import
- "slack_url" ignore
+ "slack.username" import
- "slack.url" ignore

v3 & canary/v4 Admin APIs
GET /settings/ (browse)

+ "slack_username" present in response
+ "slack_url" present in response
+ "slack" present in response

GET /settings/:settingName (read)

+ "slack_username" present in response
+ "slack_url" present in response
+ "slack" present in response

PUT /settings/ (edit)

+ "slack_username" updates setting
+ "slack_url" updates setting
+ "slack" !NOTE! updates setting unless "slack_username" or "slack_ur"l are set (updated keys take priority)

v2 Admin API
GET /settings/ (browse)

- "slack_username" NOT present in response
- "slack_url" NOT present in response
+ "slack" present in response

GET /settings/:settingName (read)

- "slack_username" ignored (404)
- "slack_url" ignored (404)
- "slack" present in response

PUT /settings/ (edit)

- "slack_username" ignored (no error)
- "slack_url" ignored (no error)
+ "slack" updates setting
2021-02-15 15:25:54 +13:00
..
authentication_spec.js Fixed failing regression tests 2020-09-22 16:13:57 +12:00
db_spec.js Removed final non-destructured imports of core/server/lib/common (#11858) 2020-05-28 17:54:18 +01:00
images_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
notifications_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
oembed_spec.js Fixed oembed tests being network dependent 2020-11-30 21:44:15 +00:00
pages_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
posts_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
redirects_spec.js Fixed Redirects API regression tests 2020-06-16 10:24:13 +02:00
schedules_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
settings_spec.js Refactored usage of the pre v4 "slack" setting 2021-02-15 15:25:54 +13:00
slack_spec.js Removed final non-destructured imports of core/server/lib/common (#11858) 2020-05-28 17:54:18 +01:00
users_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
utils.js 🏗 Altered slug unique constraint in posts table 2021-02-09 13:31:12 +13:00
webhooks_spec.js Fixed integration_id assignment for webhook when creating through API key auth 2020-08-04 16:43:24 +12:00