backups: split config and policy

keeping them together makes the test/validation quite complicated.
for example, when policy is changed, we test the storage backends

part of #817
This commit is contained in:
Girish Ramakrishnan
2023-07-12 10:01:53 +05:30
parent 7926ff2811
commit 9cebde3005
15 changed files with 299 additions and 198 deletions

View File

@@ -29,8 +29,6 @@ describe('backuptask', function () {
provider: 'filesystem',
backupFolder: path.join(os.tmpdir(), 'backupstask-test-filesystem'),
format: 'tgz',
retentionPolicy: { keepWithinSecs: 10000 },
schedulePattern: '00 00 23 * * *'
};
before(async function () {