Added backupContent permission fixture

no-issue

This permission was overlooked during the creation of the ghost-backup
integration.
This commit is contained in:
Fabien O'Carroll 2019-08-07 14:12:11 +08:00
parent 5bb8fdf799
commit 910e15e643
3 changed files with 9 additions and 4 deletions

View File

@ -76,6 +76,11 @@
{
"name": "Permission",
"entries": [
{
"name": "Backup database",
"action_type": "backupContent",
"object_type": "db"
},
{
"name": "Export database",
"action_type": "exportContent",

View File

@ -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'
});
});

View File

@ -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