Commit ff409bef authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

new usage of CLI

parent 05bbb38d
......@@ -110,7 +110,7 @@ describe('Application life cycle test', function () {
});
it('install app', function () {
execSync('cloudron install --new --wait --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
execSync('cloudron install --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
});
it('can get app information', function () {
......@@ -134,7 +134,7 @@ describe('Application life cycle test', function () {
it('can download flie', checkDownload);
it('can restart app', function (done) {
execSync('cloudron restart --wait --app ' + app.id);
execSync('cloudron restart --app ' + app.id);
done();
});
......@@ -156,7 +156,7 @@ describe('Application life cycle test', function () {
// test update
it('can install previous version from appstore', function () {
execSync(`cloudron install --new --wait --appstore-id info.privatebin.cloudronapp --location ${LOCATION}`);
execSync(`cloudron install --appstore-id info.privatebin.cloudronapp --location ${LOCATION}`);
var inspect = JSON.parse(execSync('cloudron inspect'));
app = inspect.apps.filter(function (a) { return a.location === LOCATION; })[0];
expect(app).to.be.an('object');
......@@ -165,7 +165,7 @@ describe('Application life cycle test', function () {
it('can upload file', checkUpload);
it('can update', function () {
execSync('cloudron install --wait --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
execSync('cloudron update --app ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
});
it('can download flie', checkDownload);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment