mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Added backupContent permission fixture
no-issue This permission was overlooked during the creation of the ghost-backup integration.
This commit is contained in:
parent
5bb8fdf799
commit
910e15e643
@ -76,6 +76,11 @@
|
||||
{
|
||||
"name": "Permission",
|
||||
"entries": [
|
||||
{
|
||||
"name": "Backup database",
|
||||
"action_type": "backupContent",
|
||||
"object_type": "db"
|
||||
},
|
||||
{
|
||||
"name": "Export database",
|
||||
"action_type": "exportContent",
|
||||
|
@ -258,10 +258,10 @@ describe('Migration Fixture Utils', function () {
|
||||
it('should fetch a fixture with multiple entries', function () {
|
||||
var foundFixture = fixtureUtils.findModelFixtures('Permission', {object_type: 'db'});
|
||||
foundFixture.should.be.an.Object();
|
||||
foundFixture.entries.should.be.an.Array().with.lengthOf(3);
|
||||
foundFixture.entries.should.be.an.Array().with.lengthOf(4);
|
||||
foundFixture.entries[0].should.eql({
|
||||
name: 'Export database',
|
||||
action_type: 'exportContent',
|
||||
name: 'Backup database',
|
||||
action_type: 'backupContent',
|
||||
object_type: 'db'
|
||||
});
|
||||
});
|
||||
|
@ -20,7 +20,7 @@ var should = require('should'),
|
||||
describe('DB version integrity', function () {
|
||||
// Only these variables should need updating
|
||||
const currentSchemaHash = 'fda0398e93a74b2dc435cb4c026679ba';
|
||||
const currentFixturesHash = '06771caf35c48fd69cb209a988237c33';
|
||||
const currentFixturesHash = 'c61a52e138abb31de3a58c7728ca3d79';
|
||||
|
||||
// If this test is failing, then it is likely a change has been made that requires a DB version bump,
|
||||
// and the values above will need updating as confirmation
|
||||
|
Loading…
Reference in New Issue
Block a user