test if we can send mail as alias
This commit is contained in:
parent
b10f19f2ca
commit
11858d3b10
@ -104,7 +104,21 @@ describe('Cloudron backup testing', function () {
|
||||
cloudron.checkMail(_.extend(owner, { to: 'admin' }), done);
|
||||
});
|
||||
|
||||
it('did receive mail to alias (using alias creds)', function (done) {
|
||||
it('can send mail as alias', function (done) {
|
||||
cloudron.sendMail(_.extend(owner, { from: 'admin' }), '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()),
|
||||
to: common.regexp('test+' + cloudron.fqdn() + '@cloudron.io'),
|
||||
body: /This release depends on you/
|
||||
}, done);
|
||||
});
|
||||
|
||||
// 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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user