sources/ldap: add e2e LDAP source tests (#4462)

* start adding more LDAP source tests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* improve healthcheck

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* try local webdriver

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* add full samba tests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix locale types

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2023-01-19 15:03:56 +01:00
committed by GitHub
parent 8709f3300c
commit c61529e4d4
7 changed files with 182 additions and 10 deletions

View File

@ -1,5 +1,6 @@
import { EVENT_LOCALE_CHANGE } from "@goauthentik/common/constants";
import { globalAK } from "@goauthentik/common/global";
import { PluralCategory } from "make-plural";
import { Messages, i18n } from "@lingui/core";
import { detect, fromNavigator, fromUrl } from "@lingui/detect-locale";
@ -7,7 +8,7 @@ import { t } from "@lingui/macro";
interface Locale {
locale: Messages;
plurals: (n: string | number, ord?: boolean | undefined) => string;
plurals: (n: string | number, ord?: boolean | undefined) => PluralCategory;
}
export const LOCALES: {