pre 0.15.0 needs manifest
This commit is contained in:
parent
0e1c7b462c
commit
869795a70e
|
@ -171,7 +171,7 @@ Cloudron.prototype.installApp = function (location, manifestOrAppstoreId, portBi
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
manifest: typeof manifestOrAppstoreId === 'object' ? manifestOrAppstoreId : null,
|
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,
|
location: location,
|
||||||
accessRestriction: null,
|
accessRestriction: null,
|
||||||
oauthProxy: false,
|
oauthProxy: false,
|
||||||
|
|
|
@ -77,7 +77,9 @@ describe('Cloudron update testing', function () {
|
||||||
|
|
||||||
var location = 'test' + (Math.random() * 10000).toFixed();
|
var location = 'test' + (Math.random() * 10000).toFixed();
|
||||||
it('can install app', function () {
|
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 () {
|
it('can populate the addons', function () {
|
||||||
|
|
Loading…
Reference in New Issue