filename is now id

This commit is contained in:
Girish Ramakrishnan 2016-04-04 17:02:21 -07:00
parent dc2f70a519
commit e609ae88d4
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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