|
@@ -115,7 +115,7 @@ describe('Application life cycle test', function () {
|
|
browser.get('https://' + app.fqdn + '/' + username + '/' + reponame);
|
|
browser.get('https://' + app.fqdn + '/' + username + '/' + reponame);
|
|
browser.findElement(by.id('repo-clone-ssh')).click();
|
|
browser.findElement(by.id('repo-clone-ssh')).click();
|
|
browser.findElement(by.id('repo-clone-url')).getAttribute('value').then(function (cloneUrl) {
|
|
browser.findElement(by.id('repo-clone-url')).getAttribute('value').then(function (cloneUrl) {
|
|
- expect(cloneUrl).to.be('ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
|
|
|
|
|
|
+ expect(cloneUrl).to.be('ssh://git@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
|
|
done();
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -123,14 +123,14 @@ describe('Application life cycle test', function () {
|
|
it('can clone the url', function (done) {
|
|
it('can clone the url', function (done) {
|
|
var env = Object.create(process.env);
|
|
var env = Object.create(process.env);
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
- execSync('git clone ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git ' + repodir, { env: env });
|
|
|
|
|
|
+ execSync('git clone ssh://git@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git ' + repodir, { env: env });
|
|
done();
|
|
done();
|
|
});
|
|
});
|
|
|
|
|
|
it('can add and push a file', function (done) {
|
|
it('can add and push a file', function (done) {
|
|
var env = Object.create(process.env);
|
|
var env = Object.create(process.env);
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
- execSync('touch newfile && git add newfile && git commit -a -mx && git push ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + ' master',
|
|
|
|
|
|
+ execSync('touch newfile && git add newfile && git commit -a -mx && git push ssh://git@' + app.fqdn + ':29418/' + username + '/' + reponame + ' master',
|
|
{ env: env, cwd: repodir });
|
|
{ env: env, cwd: repodir });
|
|
rimraf.sync('/tmp/testrepo');
|
|
rimraf.sync('/tmp/testrepo');
|
|
done();
|
|
done();
|
|
@@ -144,7 +144,7 @@ describe('Application life cycle test', function () {
|
|
it('can clone the url', function (done) {
|
|
it('can clone the url', function (done) {
|
|
var env = Object.create(process.env);
|
|
var env = Object.create(process.env);
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
- execSync('git clone ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git ' + repodir, { env: env });
|
|
|
|
|
|
+ execSync('git clone ssh://git@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git ' + repodir, { env: env });
|
|
expect(fs.existsSync(repodir + '/newfile')).to.be(true);
|
|
expect(fs.existsSync(repodir + '/newfile')).to.be(true);
|
|
rimraf.sync(repodir);
|
|
rimraf.sync(repodir);
|
|
done();
|
|
done();
|
|
@@ -161,7 +161,7 @@ describe('Application life cycle test', function () {
|
|
it('can clone the url', function (done) {
|
|
it('can clone the url', function (done) {
|
|
var env = Object.create(process.env);
|
|
var env = Object.create(process.env);
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
- execSync('git clone ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git ' + repodir, { env: env });
|
|
|
|
|
|
+ execSync('git clone ssh://git@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git ' + repodir, { env: env });
|
|
expect(fs.existsSync(repodir + '/newfile')).to.be(true);
|
|
expect(fs.existsSync(repodir + '/newfile')).to.be(true);
|
|
rimraf.sync(repodir);
|
|
rimraf.sync(repodir);
|
|
done();
|
|
done();
|
|
@@ -187,7 +187,7 @@ describe('Application life cycle test', function () {
|
|
browser.get('https://' + app.fqdn + '/' + username + '/' + reponame);
|
|
browser.get('https://' + app.fqdn + '/' + username + '/' + reponame);
|
|
browser.findElement(by.id('repo-clone-ssh')).click();
|
|
browser.findElement(by.id('repo-clone-ssh')).click();
|
|
browser.findElement(by.id('repo-clone-url')).getAttribute('value').then(function (cloneUrl) {
|
|
browser.findElement(by.id('repo-clone-url')).getAttribute('value').then(function (cloneUrl) {
|
|
- expect(cloneUrl).to.be('ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
|
|
|
|
|
|
+ expect(cloneUrl).to.be('ssh://git@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git');
|
|
done();
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -195,7 +195,7 @@ describe('Application life cycle test', function () {
|
|
it('can clone the url', function (done) {
|
|
it('can clone the url', function (done) {
|
|
var env = Object.create(process.env);
|
|
var env = Object.create(process.env);
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
env.GIT_SSH = __dirname + '/git_ssh_wrapper.sh';
|
|
- execSync('git clone ssh://cloudron@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git ' + repodir, { env: env });
|
|
|
|
|
|
+ execSync('git clone ssh://git@' + app.fqdn + ':29418/' + username + '/' + reponame + '.git ' + repodir, { env: env });
|
|
expect(fs.existsSync(repodir + '/newfile')).to.be(true);
|
|
expect(fs.existsSync(repodir + '/newfile')).to.be(true);
|
|
rimraf.sync(repodir);
|
|
rimraf.sync(repodir);
|
|
done();
|
|
done();
|