From e609ae88d43c147baaed6471bd7af8640425b0ea Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 4 Apr 2016 17:02:21 -0700 Subject: [PATCH] filename is now id --- cloudron.js | 2 +- test/cloudron-backup-test.js | 2 +- test/custom-domain-test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); });