groups: add events to eventlog

This commit is contained in:
Girish Ramakrishnan
2024-12-04 09:48:25 +01:00
parent fdf8025a02
commit 3b9d617e37
13 changed files with 113 additions and 94 deletions
+5 -5
View File
@@ -500,7 +500,7 @@ describe('External LDAP', function () {
it('can set groups of external user when group sync is disabled', async function () {
const user = await users.getByUsername(ldapUsers[0].username);
await groups.setLocalMembership(user, []);
await groups.setLocalMembership(user, [], auditSource);
});
it('enable with groupSync', async function () {
@@ -544,7 +544,7 @@ describe('External LDAP', function () {
groupname: 'INTERNALgroup' // also tests lowercasing
});
await groups.add({ name: 'internalgroup' });
await groups.add({ name: 'internalgroup' }, auditSource);
await externalLdap.sync(function progress() {});
const result = await groups.list();
@@ -564,7 +564,7 @@ describe('External LDAP', function () {
const result = await groups.getByName('nonemptygroup');
expect(result).to.be.ok();
const result2 = await groups.getMembers(result.id);
const result2 = await groups.getMemberIds(result.id);
expect(result2.length).to.equal(2);
});
@@ -578,7 +578,7 @@ describe('External LDAP', function () {
const result = await groups.getByName('nonemptygroup');
expect(result).to.be.ok();
const result2 = await groups.getMembers(result.id);
const result2 = await groups.getMemberIds(result.id);
expect(result2.length).to.equal(2);
});
@@ -591,7 +591,7 @@ describe('External LDAP', function () {
await externalLdap.sync(function progress() {});
const result = await groups.getByName('onemembergroup');
const result2 = await groups.getMembers(result.id);
const result2 = await groups.getMemberIds(result.id);
expect(result2.length).to.equal(1);
const u = await users.get(result2[0]);