backup targets: add test for all routes
This commit is contained in:
@@ -222,14 +222,15 @@ async function databaseSetup() {
|
||||
await dashboard._setLocation(constants.DASHBOARD_SUBDOMAIN, exports.dashboardDomain);
|
||||
|
||||
// duplicated here since we clear the database
|
||||
await backupTargets.add({
|
||||
const id = await backupTargets.add({
|
||||
provider: 'filesystem',
|
||||
label: '',
|
||||
label: 'Default',
|
||||
config: { backupFolder: '/tmp/boxtest' },
|
||||
format: 'tgz',
|
||||
retention: { keepWithinSecs: 2 * 24 * 60 * 60 },
|
||||
schedule: '00 00 23 * * *'
|
||||
});
|
||||
await backupTargets.setPrimary({ id });
|
||||
}
|
||||
|
||||
async function domainSetup() {
|
||||
|
||||
Reference in New Issue
Block a user