diff --git a/cloudron.js b/cloudron.js index 75bc94a..fee63cb 100644 --- a/cloudron.js +++ b/cloudron.js @@ -284,7 +284,7 @@ Cloudron.prototype.backup = function () { common.verifyResponse2xx(res, 'Could not get backups'); var latestBackups = res.body.backups; assert.strictEqual(latestBackups.length, existingBackups.length + 1); - return latestBackups[0]; // { creationTime, boxVersion, filename, dependsOn } + return latestBackups[0]; // { creationTime, boxVersion, id, dependsOn } }; Cloudron.prototype.reboot = function () { diff --git a/test/cloudron-backup-test.js b/test/cloudron-backup-test.js index 98f70b6..0ee9d6f 100644 --- a/test/cloudron-backup-test.js +++ b/test/cloudron-backup-test.js @@ -82,7 +82,7 @@ describe('Cloudron backup testing', function () { }); it('can restore the box', function () { - appStore.restore(box.id, backupInfo.filename); + appStore.restore(box.id, backupInfo.id); box = appStore.waitForCloudron(box.id); }); diff --git a/test/custom-domain-test.js b/test/custom-domain-test.js index 0a19ae8..f6d4ef0 100644 --- a/test/custom-domain-test.js +++ b/test/custom-domain-test.js @@ -132,7 +132,7 @@ describe('Custom domain test', function () { }); it('can restore the box', function () { - appStore.restore(box.id, backupInfo.filename); + appStore.restore(box.id, backupInfo.id); box = appStore.waitForCloudron(box.id); });