groups: add events to eventlog
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user