diff --git a/cloudron.js b/cloudron.js index 8deb997..052f7b3 100644 --- a/cloudron.js +++ b/cloudron.js @@ -283,7 +283,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, restoreKey, dependsOn } + return latestBackups[0]; // { creationTime, boxVersion, filename, dependsOn } }; Cloudron.prototype.reboot = function () { diff --git a/test/cloudron-backup-test.js b/test/cloudron-backup-test.js index 7736659..98f70b6 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.restoreKey); + appStore.restore(box.id, backupInfo.filename); box = appStore.waitForCloudron(box.id); }); diff --git a/test/custom-domain-test.js b/test/custom-domain-test.js index 3115449..25e0bdd 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.restoreKey); + appStore.restore(box.id, backupInfo.filename); box = appStore.waitForCloudron(box.id); });