Make update test use the older version of app

This commit is contained in:
Girish Ramakrishnan 2015-10-20 20:46:24 -07:00
parent 8ed0919a8c
commit 42d56e9432
3 changed files with 5 additions and 10 deletions

View File

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

View File

@ -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,

View File

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