More external ldap fixes after the test tests the correct thing

This commit is contained in:
Johannes Zellner
2021-10-26 18:04:25 +02:00
parent 26dbd50cf2
commit 50ff6b99e0
3 changed files with 8 additions and 12 deletions
+2 -6
View File
@@ -535,16 +535,12 @@ describe('External LDAP', function () {
});
it('succeeds for known user with correct password', async function () {
const newUser = {
gLdapUsers.push({
username: 'autologinuser2',
displayName: 'Auto Login2',
email: 'auto2@login.com',
password: LDAP_SHARED_PASSWORD
};
gLdapUsers.push(newUser);
await users.add(newUser.email, newUser, auditSource);
});
const response = await superagent.post(`${serverUrl}/api/v1/cloudron/login`)
.send({ username: 'autologinuser2', password: LDAP_SHARED_PASSWORD })