restoreKey is now filename

This commit is contained in:
girish@cloudron.io 2016-03-09 14:26:07 -08:00
parent beda8d5ece
commit 66562f32f8
3 changed files with 3 additions and 3 deletions

View File

@ -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 () {

View File

@ -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);
});

View File

@ -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);
});