Make update test use the older version of app
This commit is contained in:
parent
8ed0919a8c
commit
42d56e9432
12
cloudron.js
12
cloudron.js
@ -315,15 +315,9 @@ Cloudron.prototype.checkAddons = function (location, owner) {
|
||||
|
||||
try {
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.strictEqual(res.body.mysql, 'OK');
|
||||
assert.strictEqual(res.body.postgresql, 'OK');
|
||||
assert.strictEqual(res.body.mongodb, 'OK');
|
||||
assert.strictEqual(res.body.localstorage, 'OK');
|
||||
assert.strictEqual(res.body.ldap, 'OK');
|
||||
assert.strictEqual(res.body.sendmail, 'OK');
|
||||
assert.strictEqual(res.body.redis, 'OK');
|
||||
assert.strictEqual(res.body.simpleauth, 'OK');
|
||||
assert.strictEqual(res.body.scheduler, 'OK');
|
||||
for (var addon in res.body) {
|
||||
assert.strictEqual(res.body[addon], 'OK');
|
||||
}
|
||||
|
||||
return;
|
||||
} catch (e) {
|
||||
|
@ -8,6 +8,7 @@ var debug = require('debug')('e2e:common'),
|
||||
|
||||
exports = module.exports = {
|
||||
TESTAPP_ID: 'io.cloudron.testapp',
|
||||
PREV_TESTAPP_VERSION : '8.0.0',
|
||||
TESTAPP_VERSION : '9.0.0',
|
||||
|
||||
cloudronDomain: cloudronDomain,
|
||||
|
@ -77,7 +77,7 @@ describe('Cloudron update testing', function () {
|
||||
|
||||
var location = 'test' + (Math.random() * 10000).toFixed();
|
||||
it('can install app', function () {
|
||||
var manifest = appStore.getManifest(common.TESTAPP_ID, common.TESTAPP_VERSION);
|
||||
var manifest = appStore.getManifest(common.TESTAPP_ID, common.PREV_TESTAPP_VERSION);
|
||||
appId = cloudron.installApp(location, manifest, fromVersion);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user