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)
|
// mail alias tests (do this here because alias takes sometime to propagate)
|
||||||
it('can set aliases', function () {
|
it('can set aliases', function () {
|
||||||
cloudron.setAliases(['admin', 'mail']);
|
cloudron.setAliases(['mufti', 'mail']);
|
||||||
});
|
});
|
||||||
|
|
||||||
// mail tests as normal user
|
// mail tests as normal user
|
||||||
|
@ -102,21 +102,21 @@ describe('Cloudron backup testing', function () {
|
||||||
|
|
||||||
// alias tests
|
// alias tests
|
||||||
it('can send email to alias', function (done) {
|
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) {
|
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) {
|
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) {
|
it('did send mail as cloudron alias', function (done) {
|
||||||
imap.probe({
|
imap.probe({
|
||||||
subject: common.regexp('Hi from e2e test - ' + cloudron.fqdn()),
|
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'),
|
to: common.regexp('test+' + cloudron.fqdn() + '@cloudron.io'),
|
||||||
body: /This release depends on you/
|
body: /This release depends on you/
|
||||||
}, done);
|
}, done);
|
||||||
|
@ -124,7 +124,7 @@ describe('Cloudron backup testing', function () {
|
||||||
|
|
||||||
// this is not implemented. cannot auth using alias
|
// this is not implemented. cannot auth using alias
|
||||||
xit('did receive mail to alias (using alias creds)', function (done) {
|
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
|
////////////////////////// restore
|
||||||
|
@ -180,21 +180,21 @@ describe('Cloudron backup testing', function () {
|
||||||
|
|
||||||
// alias tests continue to work after restore
|
// alias tests continue to work after restore
|
||||||
it('can send email to alias', function (done) {
|
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) {
|
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) {
|
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) {
|
it('did send mail as cloudron alias', function (done) {
|
||||||
imap.probe({
|
imap.probe({
|
||||||
subject: common.regexp('Hi from e2e test - ' + cloudron.fqdn()),
|
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'),
|
to: common.regexp('test+' + cloudron.fqdn() + '@cloudron.io'),
|
||||||
body: /This release depends on you/
|
body: /This release depends on you/
|
||||||
}, done);
|
}, done);
|
||||||
|
|
Loading…
Reference in New Issue