Make release/revert as before/after
This commit is contained in:
parent
e96e3a864b
commit
7a577a08ae
@ -30,6 +30,14 @@ describe('Cloudron update testing', function () {
|
|||||||
var owner = common.getOwner();
|
var owner = common.getOwner();
|
||||||
var res, fromVersion, toVersion, cloudron, appId, box, nextVersion;
|
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 () {
|
it('can query versions', function () {
|
||||||
res = request.get('https://s3.amazonaws.com/staging-cloudron-releases/versions.json').end();
|
res = request.get('https://s3.amazonaws.com/staging-cloudron-releases/versions.json').end();
|
||||||
common.verifyResponse(res);
|
common.verifyResponse(res);
|
||||||
@ -105,10 +113,6 @@ describe('Cloudron update testing', function () {
|
|||||||
assert.strictEqual(res.body.mongodb, 'OK');
|
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 () {
|
it('can update to new version', function () {
|
||||||
console.log('Wait for cloudron to get the update');
|
console.log('Wait for cloudron to get the update');
|
||||||
sleep(60 * 2);
|
sleep(60 * 2);
|
||||||
@ -127,10 +131,6 @@ describe('Cloudron update testing', function () {
|
|||||||
assert.strictEqual(res.body.mongodb, 'OK');
|
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 () {
|
it('can uninstall app', function () {
|
||||||
cloudron.uninstallApp(appId);
|
cloudron.uninstallApp(appId);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user