eventlog: add backup target eventlog
This commit is contained in:
@@ -17,7 +17,7 @@ const archives = require('../archives.js'),
|
||||
timers = require('timers/promises');
|
||||
|
||||
describe('backup cleaner', function () {
|
||||
const { setup, cleanup, app, getDefaultBackupTarget } = common;
|
||||
const { setup, cleanup, app, getDefaultBackupTarget, auditSource } = common;
|
||||
|
||||
before(setup);
|
||||
after(cleanup);
|
||||
@@ -238,13 +238,13 @@ describe('backup cleaner', function () {
|
||||
await backupTargets.setConfig(target, {
|
||||
provider: 'filesystem',
|
||||
backupFolder: '/tmp/someplace',
|
||||
});
|
||||
await backupTargets.setRetention(target, { keepWithinSecs: 1 });
|
||||
await backupTargets.setSchedule(target, '00 00 23 * * *');
|
||||
}, auditSource);
|
||||
await backupTargets.setRetention(target, { keepWithinSecs: 1 }, auditSource);
|
||||
await backupTargets.setSchedule(target, '00 00 23 * * *', auditSource);
|
||||
});
|
||||
|
||||
async function cleanupBackups(target) {
|
||||
const taskId = await backupTargets.startCleanupTask(target, { username: 'test' });
|
||||
const taskId = await backupTargets.startCleanupTask(target, auditSource);
|
||||
|
||||
console.log('started task', taskId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user