From ceca32c21715cfeec8df4e9ab648e322e2b164d3 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 1 Sep 2016 09:03:27 -0700 Subject: [PATCH] enable email --- test/cloudron-autoupdate-sfo1-test.js | 4 ++++ test/cloudron-backup-test.js | 5 +++++ test/cloudron-migrate-test.js | 5 +++++ test/cloudron-user-test.js | 4 ++++ test/selfhost-ec2-create-test.js | 5 +++++ 5 files changed, 23 insertions(+) diff --git a/test/cloudron-autoupdate-sfo1-test.js b/test/cloudron-autoupdate-sfo1-test.js index 8e822ac..572023b 100644 --- a/test/cloudron-autoupdate-sfo1-test.js +++ b/test/cloudron-autoupdate-sfo1-test.js @@ -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); diff --git a/test/cloudron-backup-test.js b/test/cloudron-backup-test.js index 144dfcb..9e879f1 100644 --- a/test/cloudron-backup-test.js +++ b/test/cloudron-backup-test.js @@ -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']); diff --git a/test/cloudron-migrate-test.js b/test/cloudron-migrate-test.js index 5377ed1..b07eb36 100644 --- a/test/cloudron-migrate-test.js +++ b/test/cloudron-migrate-test.js @@ -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, diff --git a/test/cloudron-user-test.js b/test/cloudron-user-test.js index 1ce739a..10c2cbf 100644 --- a/test/cloudron-user-test.js +++ b/test/cloudron-user-test.js @@ -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'); }); diff --git a/test/selfhost-ec2-create-test.js b/test/selfhost-ec2-create-test.js index 4047309..c79a1b8 100644 --- a/test/selfhost-ec2-create-test.js +++ b/test/selfhost-ec2-create-test.js @@ -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); });