pre 0.15.0 needs manifest

This commit is contained in:
Girish Ramakrishnan 2016-06-07 18:55:59 -07:00
parent 0e1c7b462c
commit 869795a70e
2 changed files with 4 additions and 2 deletions

View File

@ -171,7 +171,7 @@ Cloudron.prototype.installApp = function (location, manifestOrAppstoreId, portBi
var data = {
manifest: typeof manifestOrAppstoreId === 'object' ? manifestOrAppstoreId : null,
appStoreId: typeof manifestOrAppstoreId === 'string' ? manifestOrAppstoreId : '',
appStoreId: typeof manifestOrAppstoreId === 'string' ? manifestOrAppstoreId : manifestOrAppstoreId.id, // for pre-0.15.0
location: location,
accessRestriction: null,
oauthProxy: false,

View File

@ -77,7 +77,9 @@ describe('Cloudron update testing', function () {
var location = 'test' + (Math.random() * 10000).toFixed();
it('can install app', function () {
appId = cloudron.installApp(location, common.TESTAPP_ID + '@' + common.PREV_TESTAPP_VERSION);
var manifest = appStore.getManifest(common.TESTAPP_ID, common.PREV_TESTAPP_VERSION);
appId = cloudron.installApp(location, manifest);
// appId = cloudron.installApp(location, common.TESTAPP_ID + '@' + common.PREV_TESTAPP_VERSION);
});
it('can populate the addons', function () {