admin alias is now reserved
This commit is contained in:
parent
8216aee8c4
commit
ef183f0f5f
@ -72,7 +72,7 @@ describe('Cloudron backup testing', function () {
|
||||
|
||||
// mail alias tests (do this here because alias takes sometime to propagate)
|
||||
it('can set aliases', function () {
|
||||
cloudron.setAliases(['admin', 'mail']);
|
||||
cloudron.setAliases(['mufti', 'mail']);
|
||||
});
|
||||
|
||||
// mail tests as normal user
|
||||
@ -102,21 +102,21 @@ describe('Cloudron backup testing', function () {
|
||||
|
||||
// alias tests
|
||||
it('can send email to alias', function (done) {
|
||||
mailer.sendMailToCloudronUser('admin@' + box.domain, done);
|
||||
mailer.sendMailToCloudronUser('mufti@' + box.domain, done);
|
||||
});
|
||||
|
||||
it('did receive mail as alias (using owner name creds)', function (done) {
|
||||
cloudron.checkMail(_.extend(owner, { to: 'admin' }), done);
|
||||
cloudron.checkMail(_.extend(owner, { to: 'mufti' }), done);
|
||||
});
|
||||
|
||||
it('can send mail as alias', function (done) {
|
||||
cloudron.sendMail(_.extend(owner, { from: 'admin' }), 'test+' + cloudron.fqdn() + '@cloudron.io', done);
|
||||
cloudron.sendMail(_.extend(owner, { from: 'mufti' }), 'test+' + cloudron.fqdn() + '@cloudron.io', done);
|
||||
});
|
||||
|
||||
it('did send mail as cloudron alias', function (done) {
|
||||
imap.probe({
|
||||
subject: common.regexp('Hi from e2e test - ' + cloudron.fqdn()),
|
||||
from: common.regexp('admin@' + cloudron.fqdn()),
|
||||
from: common.regexp('mufti@' + cloudron.fqdn()),
|
||||
to: common.regexp('test+' + cloudron.fqdn() + '@cloudron.io'),
|
||||
body: /This release depends on you/
|
||||
}, done);
|
||||
@ -124,7 +124,7 @@ describe('Cloudron backup testing', function () {
|
||||
|
||||
// this is not implemented. cannot auth using alias
|
||||
xit('did receive mail to alias (using alias creds)', function (done) {
|
||||
cloudron.checkMail({ username: 'admin', password: owner.password, to: 'admin' }, done);
|
||||
cloudron.checkMail({ username: 'mufti', password: owner.password, to: 'mufti' }, done);
|
||||
});
|
||||
|
||||
////////////////////////// restore
|
||||
@ -180,21 +180,21 @@ describe('Cloudron backup testing', function () {
|
||||
|
||||
// alias tests continue to work after restore
|
||||
it('can send email to alias', function (done) {
|
||||
mailer.sendMailToCloudronUser('admin@' + box.domain, done);
|
||||
mailer.sendMailToCloudronUser('mufti@' + box.domain, done);
|
||||
});
|
||||
|
||||
it('did receive mail as alias (using owner name creds)', function (done) {
|
||||
cloudron.checkMail(_.extend(owner, { to: 'admin' }), done);
|
||||
cloudron.checkMail(_.extend(owner, { to: 'mufti' }), done);
|
||||
});
|
||||
|
||||
it('can send mail as alias', function (done) {
|
||||
cloudron.sendMail(_.extend(owner, { from: 'admin' }), 'test+' + cloudron.fqdn() + '@cloudron.io', done);
|
||||
cloudron.sendMail(_.extend(owner, { from: 'mufti' }), 'test+' + cloudron.fqdn() + '@cloudron.io', done);
|
||||
});
|
||||
|
||||
it('did send mail as cloudron alias', function (done) {
|
||||
imap.probe({
|
||||
subject: common.regexp('Hi from e2e test - ' + cloudron.fqdn()),
|
||||
from: common.regexp('admin@' + cloudron.fqdn()),
|
||||
from: common.regexp('mufti@' + cloudron.fqdn()),
|
||||
to: common.regexp('test+' + cloudron.fqdn() + '@cloudron.io'),
|
||||
body: /This release depends on you/
|
||||
}, done);
|
||||
|
Loading…
Reference in New Issue
Block a user