check mail in update and backup tests
This commit is contained in:
parent
a2b9e4f66a
commit
df9f5f2e2e
|
@ -10,7 +10,7 @@ var AppStore = require('../appstore.js'),
|
||||||
Cloudron = require('../cloudron.js'),
|
Cloudron = require('../cloudron.js'),
|
||||||
common = require('../common.js'),
|
common = require('../common.js'),
|
||||||
dnsSync = require('dns-sync'),
|
dnsSync = require('dns-sync'),
|
||||||
request = require('superagent-sync'),
|
mailer = require('../mailer.js'),
|
||||||
sleep = require('sleep').sleep;
|
sleep = require('sleep').sleep;
|
||||||
|
|
||||||
require('colors');
|
require('colors');
|
||||||
|
@ -55,6 +55,10 @@ describe('Cloudron backup testing', function () {
|
||||||
cloudron.setCredentials(owner.password, token);
|
cloudron.setCredentials(owner.password, token);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('send mail to cloudron user', function (done) {
|
||||||
|
mailer.sendMailToCloudronUser(owner.username + '@' + box.domain, done);
|
||||||
|
});
|
||||||
|
|
||||||
var location = 'test' + (Math.random() * 10000).toFixed();
|
var location = 'test' + (Math.random() * 10000).toFixed();
|
||||||
it('can install app', function () {
|
it('can install app', function () {
|
||||||
var manifest = appStore.getManifest(common.TESTAPP_ID, common.TESTAPP_VERSION);
|
var manifest = appStore.getManifest(common.TESTAPP_ID, common.TESTAPP_VERSION);
|
||||||
|
@ -106,6 +110,10 @@ describe('Cloudron backup testing', function () {
|
||||||
cloudron.uninstallApp(appId);
|
cloudron.uninstallApp(appId);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('can check mail', function (done) {
|
||||||
|
cloudron.checkMail(owner, done);
|
||||||
|
});
|
||||||
|
|
||||||
it('can delete the cloudron', function () {
|
it('can delete the cloudron', function () {
|
||||||
appStore.deleteCloudron(box);
|
appStore.deleteCloudron(box);
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,6 +11,7 @@ var AppStore = require('../appstore.js'),
|
||||||
assert = require('assert'),
|
assert = require('assert'),
|
||||||
Cloudron = require('../cloudron.js'),
|
Cloudron = require('../cloudron.js'),
|
||||||
common = require('../common.js'),
|
common = require('../common.js'),
|
||||||
|
mailer = require('../mailer.js'),
|
||||||
request = require('superagent-sync'),
|
request = require('superagent-sync'),
|
||||||
semver = require('semver'),
|
semver = require('semver'),
|
||||||
sleep = require('sleep').sleep;
|
sleep = require('sleep').sleep;
|
||||||
|
@ -65,6 +66,10 @@ describe('Cloudron update testing', function () {
|
||||||
cloudron.activate(owner);
|
cloudron.activate(owner);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('send mail to cloudron user', function (done) {
|
||||||
|
mailer.sendMailToCloudronUser(owner.username + '@' + box.domain, done);
|
||||||
|
});
|
||||||
|
|
||||||
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);
|
||||||
|
@ -114,6 +119,10 @@ describe('Cloudron update testing', function () {
|
||||||
cloudron.uninstallApp(appId);
|
cloudron.uninstallApp(appId);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('can check mail', function (done) {
|
||||||
|
cloudron.checkMail(owner, done);
|
||||||
|
});
|
||||||
|
|
||||||
it('can delete the cloudron', function () {
|
it('can delete the cloudron', function () {
|
||||||
appStore.deleteCloudron(box);
|
appStore.deleteCloudron(box);
|
||||||
});
|
});
|
||||||
|
|
|
@ -101,7 +101,6 @@ describe('Custom domain test', function () {
|
||||||
cloudron.setCredentials(owner.password, token);
|
cloudron.setCredentials(owner.password, token);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('send mail to cloudron user', function (done) {
|
it('send mail to cloudron user', function (done) {
|
||||||
mailer.sendMailToCloudronUser(owner.username + '@' + CUSTOM_DOMAIN, done);
|
mailer.sendMailToCloudronUser(owner.username + '@' + CUSTOM_DOMAIN, done);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue