test restart

This commit is contained in:
Girish Ramakrishnan 2015-11-30 18:09:13 -08:00
parent 4758c4250d
commit 8d7d65cce4
1 changed files with 14 additions and 0 deletions

View File

@ -135,6 +135,20 @@ describe('Application life cycle test', function () {
done(); done();
}); });
it('can restart app', function (done) {
execSync('cloudron restart');
done();
});
it('can clone the url', function (done) {
var env = Object.create(process.env);
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
execSync('git clone ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git ' + repodir, { env: env });
expect(fs.existsSync(repodir + '/newfile')).to.be(true);
rimraf.sync(repodir);
done();
});
it('backup app', function () { it('backup app', function () {
execSync('cloudron backup --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }); execSync('cloudron backup --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
}); });