rework mail domain stats
We can now show list count, alias count as well in the mail domains UI
This commit is contained in:
@@ -360,7 +360,7 @@ describe('Ldap Server', function () {
|
||||
const LIST_NAME = 'devs', LIST = `devs@${domain.domain}`;
|
||||
|
||||
before(async function () {
|
||||
await mail.addList(LIST_NAME, domain.domain, { members: [ mailbox , 'outsider@external.com' ], membersOnly: false, active: true }, auditSource);
|
||||
await mail.addMailingList(LIST_NAME, domain.domain, { members: [ mailbox , 'outsider@external.com' ], membersOnly: false, active: true }, auditSource);
|
||||
});
|
||||
|
||||
it('get specific list', async function () {
|
||||
@@ -376,7 +376,7 @@ describe('Ldap Server', function () {
|
||||
});
|
||||
|
||||
it('inactive list', async function () {
|
||||
await mail.updateList(LIST_NAME, domain.domain, { members: [ mailbox , 'outsider@external.com' ], membersOnly: false, active: false }, auditSource);
|
||||
await mail.updateMailingList(LIST_NAME, domain.domain, { members: [ mailbox , 'outsider@external.com' ], membersOnly: false, active: false }, auditSource);
|
||||
const [error] = await safe(ldapSearch('cn=devs@example.com,ou=mailinglists,dc=cloudron', 'objectclass=mailGroup'));
|
||||
expect(error).to.be.a(ldap.NoSuchObjectError);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user