Make release/revert as before/after

This commit is contained in:
Girish Ramakrishnan 2015-07-24 15:49:56 -07:00
parent e96e3a864b
commit 7a577a08ae
1 changed files with 8 additions and 8 deletions

View File

@ -30,6 +30,14 @@ describe('Cloudron update testing', function () {
var owner = common.getOwner();
var res, fromVersion, toVersion, cloudron, appId, box, nextVersion;
before('can release a fake version to staging', function () {
execSync(__dirname + '/../../installer/release/release rerelease --env staging', { stdio: [ null, process.stdout, process.stderr ] });
});
after('can revert the fake release from staging', function () {
execSync(__dirname + '/../../installer/release/release revert --env staging', { stdio: [ null, process.stdout, process.stderr ] });
});
it('can query versions', function () {
res = request.get('https://s3.amazonaws.com/staging-cloudron-releases/versions.json').end();
common.verifyResponse(res);
@ -105,10 +113,6 @@ describe('Cloudron update testing', function () {
assert.strictEqual(res.body.mongodb, 'OK');
});
it('can release a fake version to staging', function () {
execSync(__dirname + '/../../installer/release/release rerelease --env staging', { stdio: [ null, process.stdout, process.stderr ] });
});
it('can update to new version', function () {
console.log('Wait for cloudron to get the update');
sleep(60 * 2);
@ -127,10 +131,6 @@ describe('Cloudron update testing', function () {
assert.strictEqual(res.body.mongodb, 'OK');
});
it('can revert the fake release from staging', function () {
execSync(__dirname + '/../../installer/release/release revert --env staging', { stdio: [ null, process.stdout, process.stderr ] });
});
it('can uninstall app', function () {
cloudron.uninstallApp(appId);
});