0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test/regression
Kevin Ansfield 061368a137
Merge pull request from GHSA-4m2q-w26j-h268
back-ported from 64ed246d03

- added an `externalRequest` lib
  - uses same underlying `got` module as our `request` lib
  - uses `got`'s `beforeRequest` and `beforeRedirect` hooks to perform it's own dns resolution for each url that's encountered and aborts with an error if it resolves to a private IP address block
  - includes a bypass for Ghost's configured url so that requests to it's own hostname+port are not blocked
- updated v0.1, v2 and canary oembed controllers to use the `externalRequest` lib
2020-06-04 16:58:51 +01:00
..
api Merge pull request from GHSA-4m2q-w26j-h268 2020-06-04 16:58:51 +01:00
apps/subscribers
exporter
importer Updated tests eslint config to use eslint-plugin-ghost@0.5.0 2019-08-19 13:38:35 +01:00
migrations Fixed regression tests for v2/admin/db 2019-08-09 10:57:49 +08:00
models 🐛 Fixed "unsaved changes" modal displaying when post has been saved 2019-10-07 22:59:19 +01:00
site Fixed regression tests expecting relative URLs for admin redirects 2019-09-09 15:52:26 +01:00
update-check Fixed regression test 2019-05-02 21:04:16 +02:00
README.md

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.