X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fexternal-plugins%2Fauth-ldap.ts;h=bb02fbc0292e01d65ca7b1f401c589a4caba68bf;hb=8e2392e512f2652267b5483a17ce12f6deb645b8;hp=7aee986c78e52e41b9f1ae7cf137c9a7ea4f7906;hpb=829b794a8542b55bdfff481fa7c3593bc88cb696;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/external-plugins/auth-ldap.ts b/server/tests/external-plugins/auth-ldap.ts index 7aee986c7..bb02fbc02 100644 --- a/server/tests/external-plugins/auth-ldap.ts +++ b/server/tests/external-plugins/auth-ldap.ts @@ -1,10 +1,18 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import 'mocha' -import { getMyUserInformation, installPlugin, setAccessTokensToServers, updatePluginSettings, userLogin, uploadVideo, uninstallPlugin } from '../../../shared/extra-utils' -import { cleanupTests, flushAndRunServer, ServerInfo } from '../../../shared/extra-utils/server/servers' -import { User } from '@shared/models/users/user.model' import { expect } from 'chai' +import { User } from '@shared/models/users/user.model' +import { + getMyUserInformation, + installPlugin, + setAccessTokensToServers, + uninstallPlugin, + updatePluginSettings, + uploadVideo, + userLogin +} from '../../../shared/extra-utils' +import { cleanupTests, flushAndRunServer, ServerInfo } from '../../../shared/extra-utils/server/servers' describe('Official plugin auth-ldap', function () { let server: ServerInfo @@ -39,7 +47,7 @@ describe('Official plugin auth-ldap', function () { 'mail-property': 'mail', 'search-base': 'ou=people,dc=planetexpress,dc=com', 'search-filter': '(|(mail={{username}})(uid={{username}}))', - 'url': 'ldap://ldap:390', + 'url': 'ldap://localhost:390', 'username-property': 'uid' } }) @@ -59,7 +67,7 @@ describe('Official plugin auth-ldap', function () { 'mail-property': 'mail', 'search-base': 'ou=people,dc=planetexpress,dc=com', 'search-filter': '(|(mail={{username}})(uid={{username}}))', - 'url': 'ldap://ldap:389', + 'url': 'ldap://localhost:389', 'username-property': 'uid' } })