enable email

This commit is contained in:
Girish Ramakrishnan 2016-09-01 09:03:27 -07:00
parent d3d67df25f
commit ceca32c217
5 changed files with 23 additions and 0 deletions

View File

@ -75,6 +75,10 @@ describe('Cloudron update testing', function () {
cloudron.setCredentials(owner.password, token);
});
it('can enable email', function () {
cloudron.setEmailEnabled(true);
});
var location = 'test' + (Math.random() * 10000).toFixed();
it('can install app', function () {
var manifest = appStore.getManifest(common.TESTAPP_ID, common.PREV_TESTAPP_VERSION);

View File

@ -66,6 +66,11 @@ describe('Cloudron backup testing', function () {
cloudron.setCredentials(owner.password, token);
});
it('can enable email', function () {
cloudron.setEmailEnabled(true);
sleep(20); // sometime for the mail container to come up
});
// mail alias tests (do this here because alias takes sometime to propagate)
it('can set aliases', function () {
cloudron.setAliases(owner, ['admin', 'mail']);

View File

@ -69,6 +69,11 @@ describe('Custom domain test', function () {
cloudron.setCredentials(owner.password, token);
});
it('can enable email', function () {
cloudron.setEmailEnabled(true);
sleep(20); // sometime for the mail container to come up
});
it('can migrate cloudron to custom domain', function () {
cloudron.migrate({
domain: CUSTOM_DOMAIN,

View File

@ -62,6 +62,10 @@ describe('Cloudron user creation testing', function () {
cloudron.setCredentials(owner.password, token);
});
it('can enable email', function () {
cloudron.setEmailEnabled(true);
});
it('can create user', function () {
newUser = cloudron.addUser('newuser', 'test+foo@cloudron.io');
});

View File

@ -124,6 +124,11 @@ describe('Selfhost EC2 Cloudron creation', function () {
sleep(120);
});
it('can enable email', function () {
cloudron.setEmailEnabled(true);
sleep(20); // sometime for the mail container to come up
});
it('send mail to cloudron user', function (done) {
mailer.sendMailToCloudronUser(owner.username + '@' + SELFHOST_DOMAIN, done);
});