set cloudron name before adding user
This commit is contained in:
parent
b0c45d00c3
commit
64253b9e14
|
@ -57,6 +57,10 @@ describe('Cloudron user creation testing', function () {
|
||||||
cloudron.activate(owner);
|
cloudron.activate(owner);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('can set cloudron name', function () {
|
||||||
|
cloudron.setCloudronName('Acme Inc');
|
||||||
|
});
|
||||||
|
|
||||||
it('can login to the box', function () {
|
it('can login to the box', function () {
|
||||||
var token = cloudron.getOauthToken(owner);
|
var token = cloudron.getOauthToken(owner);
|
||||||
cloudron.setCredentials(owner.password, token);
|
cloudron.setCredentials(owner.password, token);
|
||||||
|
@ -70,10 +74,6 @@ describe('Cloudron user creation testing', function () {
|
||||||
newUser = cloudron.addUser('newuser', 'test+foo@cloudron.io');
|
newUser = cloudron.addUser('newuser', 'test+foo@cloudron.io');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can set cloudron name', function () {
|
|
||||||
cloudron.setCloudronName('Acme Inc');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('did send invite mail to user', function (done) {
|
it('did send invite mail to user', function (done) {
|
||||||
var url = 'https://' + cloudron.adminFqdn() + '/api/v1/session/account/setup.html?reset_token=' + newUser.resetToken;
|
var url = 'https://' + cloudron.adminFqdn() + '/api/v1/session/account/setup.html?reset_token=' + newUser.resetToken;
|
||||||
var escapedUrl = url.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
var escapedUrl = url.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
||||||
|
|
Loading…
Reference in New Issue