mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Updated export fixture for Ghost 4.0
refs https://github.com/TryGhost/Team/issues/555
- This test fixure is up to date and contains real export from Ghost 4.0. Previous file was just an old 2.x export file which was updated manually on "as needed bases"
- See 3240d4adf0
for more context
- Updated README.md for exports generations with more accurate instructions (previous one contained a typo)
This commit is contained in:
parent
32e1ea3679
commit
0813bebac4
3 changed files with 4290 additions and 3002 deletions
|
@ -240,7 +240,7 @@ describe('DB API', function () {
|
||||||
const jsonResponse = res.body;
|
const jsonResponse = res.body;
|
||||||
should.exist(jsonResponse.db);
|
should.exist(jsonResponse.db);
|
||||||
should.exist(jsonResponse.problems);
|
should.exist(jsonResponse.problems);
|
||||||
jsonResponse.problems.should.have.length(3);
|
jsonResponse.problems.should.have.length(2);
|
||||||
|
|
||||||
const res2 = await request.get(localUtils.API.getApiQuery('posts/'))
|
const res2 = await request.get(localUtils.API.getApiQuery('posts/'))
|
||||||
.set('Origin', config.get('url'))
|
.set('Origin', config.get('url'))
|
||||||
|
|
|
@ -16,7 +16,7 @@ Steps to generate a new `vX_export.json` file:
|
||||||
- `Fixture Ghosty` - Full name
|
- `Fixture Ghosty` - Full name
|
||||||
- {your_email}@ghost.org - Email address (I used naz@ghost.org as an example, this is to prevent spamming test@ghost.org)
|
- {your_email}@ghost.org - Email address (I used naz@ghost.org as an example, this is to prevent spamming test@ghost.org)
|
||||||
- Password - generate one (for example use 1Password to autofill it)
|
- Password - generate one (for example use 1Password to autofill it)
|
||||||
4. Go to Admin panels's labs page and download an export (/settings/lab page and "Export your content" section)
|
4. Go to Admin panels's labs page and download an export (`/settings/labs` page and "Export your content" section)
|
||||||
5. Format and rename exported data: `jq . testing-export-fixtures.ghost.2021-03-24-01-15-52.json > v3_export.json` (can use `vX_export.json` where X is a Ghost version number)
|
5. Format and rename exported data: `jq . testing-export-fixtures.ghost.2021-03-24-01-15-52.json > v3_export.json` (can use `vX_export.json` where X is a Ghost version number)
|
||||||
6. Copy the file into `/utils/fixtures/export` project folder by running e.g.: `cp ./v3_export.json ~/Ghost/test/fixtures/export/`
|
6. Copy the file into `/utils/fixtures/export` project folder by running e.g.: `cp ./v3_export.json ~/Ghost/test/fixtures/export/`
|
||||||
7. Replace email used during registration with a generic `test@ghost.org` can use following command `sed -i 's/naz@ghost.org/test@ghost.org/g' v3_export.json` (replace naz@ with an email you used and use appropriate json file name)
|
7. Replace email used during registration with a generic `test@ghost.org` can use following command `sed -i 's/naz@ghost.org/test@ghost.org/g' v3_export.json` (replace naz@ with an email you used and use appropriate json file name)
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue