LemonLDAP::NG Web SSO
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
lemonldap-ng/lemonldap-ng-portal/t
Christophe Maudoux 012d9e87cf Revert all due to bad merge and branches management 5 days ago
..
PluginEntryPoints Unit tests for plugin entrypoints 1 year ago
activemq Add MessageBroker::MQTT 1 year ago
crowdsec-filters Add filtering feature into CrowdsecAgent plugin 3 months ago
geoip Unit test for #3309 10 months ago
gpghome
lib Make sure tests don't load config files from environment 1 month ago
postgres More comments 1 year ago
redis Replace Redis by Redis::Fast, increase default Redis Broker timeout and add test for #3312 9 months ago
sessions
sessions2
templates Add possibility to define custom template parameters in configuration 1 month ago
testslapd Remove dead test file 2 months ago
00-Switch.t Update unit tests for new register/withHandler methods 2 years ago
01-AuthDemo.t Use & fix warnings 3 years ago
01-BuildRule.t Improve i switch test (#3152) 2 years ago
01-BuildUrl.t Unit tests for Portal internal URLs (#2285) 8 months ago
01-CSP-and-CORS-headers.t Unit test for #3430 4 months ago
01-Cache-Tag.t Improve cacheTag unit test 3 weeks ago
01-Cookie-Domain.t Unit test for #3228 1 year ago
01-Custom2fa.t Fix unit test extension for #3039 1 year ago
01-CustomMenu.pm Unit test for #3203 1 year ago
01-Dynamic-Portal-Url.t Unit test for #3040 2 years ago
01-EnablePasswordDisplay.t Use & fix warnings 3 years ago
01-Handler-redirection-and-URL-check-by-portal.t Use & fix warnings 3 years ago
01-Keys.t Unit test for legacy key names (#3476) 2 months ago
01-Mail-Tpl.t Unit test for sendEmail function 1 year ago
01-OneTimeToken.t Unit test for OTT (#3425) 4 months ago
01-PluginEntrypoints.t Unit tests for plugin entrypoints 1 year ago
01-Reject-Hashes-in-URL.t Use & fix warnings 3 years ago
01-Unauth-Logout.t update unit tests for #3301 10 months ago
01-WebAuthn-Registration.t Update unit tests (#3258) 10 months ago
01-WebAuthn.t Update unit tests for #1921 12 months ago
01-disabledPlugins.t Unit test for disabledPlugins (#3316) 9 months ago
01-downloadSamlMetadata.t Unit test for downloadMetadata (#3141) 1 year ago
01-pdata.t Avoid regressions in #3228 1 year ago
02-Custom-Template-Parameters.t Use portalCustomTplParams name for configuration parameter 4 weeks ago
02-Password-Demo-Hook.t Use & fix warnings 3 years ago
02-Password-Demo-Local-Ppolicy.t Upadte unit test (#3145) 2 years ago
02-Password-Demo-Local-SpeChars-Ppolicy.t Update unit tests (#2973) 2 years ago
02-Password-Demo-Mail.t Add unit test for mailOnPasswordChange 2 years ago
02-Password-Demo-checkEntropy.t add an indicator of entropy during password change (#2971) 2 years ago
02-Password-Demo-checkHIBP.t Revert "Add SKIP_NETWORK_TESTS env var to skip tests that require Internet" 2 years ago
02-Password-Demo.t Update test to use getSession (#3075) 2 years ago
02-Password-Encrypted-Demo.t Update test to use getSession (#3075) 2 years ago
02-SendHtml-Plugin.t Drop useless hook 2 years ago
03-ConfTimeout.t Make sure tests don't load config files from environment 1 month ago
03-SessionTimeout.t Use & fix warnings 3 years ago
03-XSS-protection.t update unit tests for #3301 10 months ago
04-language-selection.t Transmit portal language in HTML instead of psgi.js (#3227) 1 year ago
05-Hashed-Session.t Add another hashed sessions test 2 years ago
06-Missing-conf.t Make sure tests don't load config files from environment 1 month ago
06-portal-maintainance.t Allow portal maintenance 9 months ago
10-AuthCustom.t Use & fix warnings 3 years ago
11-MessageBroker-Logout.t Add logout event into portal 8 months ago
11-MessageBroker-MQTT.t Use a parameter to define event channel name 1 year ago
11-MessageBroker-Pg.t Drop debug hook 1 year ago
11-MessageBroker-Redis.t Fix Redis test when storage is hashed 7 months ago
11-MessageBroker-Web.t Rename pubsub server and add systemd files 5 months ago
12-EventStatus.t Forbid eventStatus with NoBroker 1 year ago
19-Auth-Null.t Use & fix warnings 3 years ago
20-Auth-DBI-utf8.t Update test to use getSession (#3075) 2 years ago
20-Auth-and-password-DBI-custom-hash.t Unit test for #3231 1 year ago
20-Auth-and-password-DBI-dynamic-hash.t Update tests 1 year ago
20-Auth-and-password-DBI-encrypt.t Skip some tests when dependencies are missing (#3218) 1 year ago
20-Auth-and-password-DBI.t Use & fix warnings 3 years ago
21-Auth-LDAP-Policy.t Refactor LDAP policy tests 6 months ago
21-Auth-LDAP-attributes.t Remove useless warnings in unit tests 3 years ago
21-Auth-LDAP-group-with-group-filter.t Provide unit tests for LDAP groups 2 years ago
21-Auth-LDAP-group-without-group-filter.t Provide unit tests for LDAP groups 2 years ago
21-Auth-and-password-LDAP.t Remove useless warnings in unit tests 3 years ago
22-Auth-and-password-AD.t Use & fix warnings 3 years ago
23-Auth-and-password-REST.t Drop bundled LWP::Protocol::PSGI 2 years ago
24-AuthApache.t Use & fix warnings 3 years ago
24-AuthKerberos.t Update Kerberos test 1 month ago
25-AuthSlave-with-Choice.t Use & fix warnings 3 years ago
25-AuthSlave-with-Credentials.t Use CIDR notation instead of regexp (#3160) 1 year ago
26-AuthRadius-Attributes.t Fix unit test for #2940 2 years ago
26-AuthRadius.t Unit test for #3233 1 year ago
26-AuthRemote.t Use & fix warnings 3 years ago
27-AuthProxy-with-choice.t Use & fix warnings 3 years ago
27-AuthProxy.t Use & fix warnings 3 years ago
28-AuthChoice-2FA.t Fix unit tests 4 months ago
28-AuthChoice-Custom.t Call ->name of backend module when using choice 3 months ago
28-AuthChoice-Slave-rememberAuthChoice.t Unit test for auth choice forget at logout 1 year ago
28-AuthChoice-and-password.t Improve unit test (#3383) 6 months ago
28-AuthChoice-with-captcha.t Improve unit test (#3383) 6 months ago
28-AuthChoice-with-info.t Use & fix warnings 3 years ago
28-AuthChoice-with-over.t Update test to use getSession (#3075) 2 years ago
28-AuthChoice-with-rules.t Use id prefix to avoid having a digit as first character of an identifier 6 months ago
28-AuthChoice-with-token.t Unit test for AUTH_LOOP variables 1 year ago
29-AuthGPG.t Fix GPG test check 8 months ago
29-AuthSSL.t Unanonymize unit test (#3000) 11 months ago
29-AuthWebAuthn-Choice.t Clean sessions in tests 3 weeks ago
29-AuthWebAuthn.t Clean sessions in tests 3 weeks ago
30-Auth-CAS-Reauth.t Unit test for #2044 12 months ago
30-Auth-Oidc-Reauth.t Update unit tests for #3415 4 months ago
30-Auth-ResolutionRule.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-SAML-with-choice.t Update unit tests (#3288) 11 months ago
30-Auth-Saml-Reauth.t Unit test for #2044 12 months ago
30-Auth-and-issuer-SAML-Artifact-with-SOAP-SLO-IdP-initiated.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-Artifact-with-SOAP-SLO.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-Federation.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-Metadata.t Unit test for samlService*Key (#3374) 2 months ago
30-Auth-and-issuer-SAML-POST-Choice-2FA.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-POST-IdP-initiated.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-POST-Missing-SLO.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-POST.t Unit test for #3294 10 months ago
30-Auth-and-issuer-SAML-Redirect-Extra-AuthnContext.t Resolve "Add SAML authentication level "urn:federation:authentication:windows" for ADFS compatibility" 1 year ago
30-Auth-and-issuer-SAML-Redirect-IdP-initiated.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-Redirect-MultipleSP-Missing-SLO.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-Redirect-MultipleSP.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-Redirect-With-Info.t Fix slash in unit test urls (#3182) 1 year ago
30-Auth-and-issuer-SAML-Redirect.t Unit test for keys API 2 months ago
30-CDC.t Update test for behavior change (#3182) 1 year ago
30-Lazy-Loading.t Unit tests for #3444 2 months ago
30-SAML-Federation-Config.t Federation only works on Lasso >= 2.6 1 year ago
30-SAML-Head-to-Tail-POST.t Fix slash in unit test urls (#3182) 1 year ago
30-SAML-Key-Override-IDP.t Make #3374 unit test more robust to whitespace 2 months ago
30-SAML-Key-Override-SP.t Make #3374 unit test more robust to whitespace 2 months ago
30-SAML-Macros.t Fix slash in unit test urls (#3182) 1 year ago
30-SAML-NameID-IDP.t Fix slash in unit test urls (#3182) 1 year ago
30-SAML-NameID-SP.t Fix slash in unit test urls (#3182) 1 year ago
30-SAML-POST-Logout-when-expired.t Fix slash in unit test urls (#3182) 1 year ago
30-SAML-POST-Logout-when-removed.t Fix slash in unit test urls (#3182) 1 year ago
30-SAML-POST-with-2F-UpgradeOnly.t Fix unit tests 4 months ago
30-SAML-POST-with-2F-and-Notification.t Fix unit tests 4 months ago
30-SAML-POST-with-Notification.t Unit test for #3278 12 months ago
30-SAML-ReAuth-with-Cmb-Kerberos.t Use minified kerberos script (#3259) 10 months ago
30-SAML-ReAuth-with-choice.t Fix slash in unit test urls (#3182) 1 year ago
30-SAML-ReAuth.t Fix slash in unit test urls (#3182) 1 year ago
30-SAML-RelayState.t Fix slash in unit test urls (#3182) 1 year ago
30-SAML-SP-rule.t Fix slash in unit test urls (#3182) 1 year ago
31-Auth-and-issuer-CAS-Logout-20.t Fix slash in unit test urls (#3182) 1 year ago
31-Auth-and-issuer-CAS-Logout-30.t Fix slash in unit test urls (#3182) 1 year ago
31-Auth-and-issuer-CAS-XSS-on-logout.t Update test for behavior change (#3182) 1 year ago
31-Auth-and-issuer-CAS-declared-app-multiple-urls.t Fix slash in unit test urls (#3182) 1 year ago
31-Auth-and-issuer-CAS-declared-app-userattr.t Fix slash in unit test urls (#3182) 1 year ago
31-Auth-and-issuer-CAS-declared-app.t Unit test for #3294 10 months ago
31-Auth-and-issuer-CAS-declared-apps.t Fix slash in unit test urls (#3182) 1 year ago
31-Auth-and-issuer-CAS-default.t Fix slash in unit test urls (#3182) 1 year ago
31-Auth-and-issuer-CAS-proxied.t Fix slash in unit test urls (#3182) 1 year ago
31-Auth-and-issuer-CAS-samlValidate.t Unit test for Auth::CAS samlValidate (#2925) 8 months ago
31-Auth-and-issuer-CAS-with-choice-and-cancel.t Fix slash in unit test urls (#3182) 1 year ago
31-Auth-and-issuer-CAS-with-choice.t Fix slash in unit test urls (#3182) 1 year ago
31-CAS-10.t Improve unit test for CAS1 9 months ago
31-CAS-Gateway.t Fix slash in unit test urls (#3182) 1 year ago
31-CAS-Hooks.t Fix slash in unit test urls (#3182) 1 year ago
31-CAS-Logout-propagate-OIDC.t Drop bundled LWP::Protocol::PSGI 2 years ago
31-CAS-Logout-with-hashed-storage.t Add test for #3356 and #3358 7 months ago
31-CAS-Logout.t Unit test for #3421 4 months ago
31-CAS-Macros.t Fix slash in unit test urls (#3182) 1 year ago
31-CAS-Prefix.t Fix slash in unit test urls (#3182) 1 year ago
31-CAS-Proxy.t Unit test for #3305 9 months ago
31-CAS-SamlValidate.t Unit test for issuer samlValidate (#2925) 8 months ago
31-CAS-Security.t Fix slash in unit test urls (#3182) 1 year ago
31-CAS-jsRedirect.t Unit test for #2540 1 year ago
32-Auth-OIDC-JWKS-Refresh.t Update unit test 8 months ago
32-Auth-OIDC-Parameters.t Unit test for #3429 4 months ago
32-Auth-and-issuer-OIDC-PKCE-2.t Typo 10 months ago
32-Auth-and-issuer-OIDC-PKCE.t Unit tests for #3098 2 years ago
32-Auth-and-issuer-OIDC-authorization_code-OP-logout.t Unanonymize OIDC logout (#3000) 11 months ago
32-Auth-and-issuer-OIDC-authorization_code-different-sub.t Update unit tests for #3415 4 months ago
32-Auth-and-issuer-OIDC-authorization_code-jwt-userinfo.t Update unit tests for #3415 4 months ago
32-Auth-and-issuer-OIDC-authorization_code-public_client.t Update unit tests for #3415 4 months ago
32-Auth-and-issuer-OIDC-authorization_code-with-authchoice.t Update unit tests for #3415 4 months ago
32-Auth-and-issuer-OIDC-authorization_code-with-info.t Update unit tests for #3415 4 months ago
32-Auth-and-issuer-OIDC-authorization_code-with-none-alg.t Update unit tests for #3415 4 months ago
32-Auth-and-issuer-OIDC-authorization_code.t Unit test for #3445 3 months ago
32-Auth-and-issuer-OIDC-hybrid.t Fix slash in unit test urls (#3182) 1 year ago
32-Auth-and-issuer-OIDC-implicit-no-token.t Fix slash in unit test urls (#3182) 1 year ago
32-Auth-and-issuer-OIDC-implicit.t Fix slash in unit test urls (#3182) 1 year ago
32-Auth-and-issuer-OIDC-sorted.t Update unit tests (#3288) 11 months ago
32-OIDC-Back-Channel-Logout-no-sid.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-Back-Channel-Logout-sid-EC-keys.t Deprecate oidcServiceKeyTypeSig/oidcServiceKeyTypeEnc options (#3476) 2 months ago
32-OIDC-Back-Channel-Logout-sid-offline.t Improe test 3 months ago
32-OIDC-Back-Channel-Logout-sid-with-JWE-and-EC-keys.t Deprecate oidcServiceKeyTypeSig/oidcServiceKeyTypeEnc options (#3476) 2 months ago
32-OIDC-Back-Channel-Logout-sid.t Typo 10 months ago
32-OIDC-ClaimTypes.t Use & fix warnings 3 years ago
32-OIDC-ClientCredentials-Grant.t Unit test for #3330 8 months ago
32-OIDC-Code-Flow-Mobile.t Update unit tests for #3415 4 months ago
32-OIDC-Code-Flow-with-2F-UpgradeOnly.t Fix unit tests 4 months ago
32-OIDC-Code-Flow-with-2F.t Unit test for #3451 3 months ago
32-OIDC-Double-Keys-without-kid.t Typo 10 months ago
32-OIDC-Double-Keys.t Typo 10 months ago
32-OIDC-Grant-Type-OAuth2-Handler-Rules.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-Grant-Type-Rules.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-Hook-GetRpConfig.t Merge branch 'v2.21' into v2.0 4 months ago
32-OIDC-Hooks.t Unit tests for #3282 2 months ago
32-OIDC-ID-Token.t Unit test for custom AMR rules (#3186) 7 months ago
32-OIDC-JWE.t Better fix & improve unit test (#3297) 10 months ago
32-OIDC-JWS-client_secret_jwt.t Update unit test for #3478 2 months ago
32-OIDC-JWS-private_key_jwt.t Typo 10 months ago
32-OIDC-JWT-type-header.t Restore "typ" header in JWT 10 months ago
32-OIDC-Logout-from-RP-bypass-confirm.t Update unit tests for #3415 4 months ago
32-OIDC-Logout-redirect-uri-not-allowed.t Unit test for logout URI validation 3 months ago
32-OIDC-Logout-unauth.t Unit test for logout URI validation 3 months ago
32-OIDC-Macro.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-Metadata.t Fix PEM format in unit test (#3476) 2 months ago
32-OIDC-Native-SSO.t Use new Main::Plugins feature to drop oidcServiceAllowNativeSso key (#2902) 1 year ago
32-OIDC-OP-claims-in-accesstoken.t Update unit tests for #3415 4 months ago
32-OIDC-OP-claims-in-idtoken.t Update unit tests for #3415 4 months ago
32-OIDC-Offline-Session.t Track refresh_token activity 4 months ago
32-OIDC-Opaque-Token.t Expose session info in oidcGenerateIDToken 6 months ago
32-OIDC-Password-Grant-with-Bruteforce-and-Choice.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-Password-Grant.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-RP-rule.t Unit test for #3377 6 months ago
32-OIDC-Refresh-Token.t Unit test for secondary session update (#3308) 10 months ago
32-OIDC-Register-with-bad-redirect-uri.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-Register.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-Request-Uri.t Update unit tests for #3415 4 months ago
32-OIDC-Response-Modes.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-Token-Exchange.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-Token-Introspection.t Ensure that introspection numbers are well encoded 6 months ago
32-OIDC-Token-Security.t Unit test for #3294 10 months ago
32-OIDC-admin-Back-Channel-Logout-sid.t Fix portal's event-logout (#3273) 6 months ago
32-OIDC-bad-auth-method.t Typo 10 months ago
32-OIDC-key-override.t Allow per-client JWKS (#3476) 1 month ago
32-OIDC-login_hint.t Add test (#3176) 8 months ago
32-OIDC-no-Metadata.t Fix slash in unit test urls (#3182) 1 year ago
32-OIDC-prompt-none.t fix warning 6 months ago
32-OIDC-redirect_uri-filter.t Unit test for oidcValidateRedirectUri hook (#3375) 3 months ago
32-OIDC-strict-JWS-private_key_jwt.t Typo 10 months ago
32-RemoveOIDCToken.t [~] fixed test to get the refresh_token from returned html 5 months ago
33-Auth-and-issuer-OpenID2.t Fix slash in unit test urls (#3182) 1 year ago
34-Auth-Proxy-and-REST-Server.t Add key parameter in update-session API to target a precise key 4 months ago
34-Auth-Proxy-and-REST-sessions.t Fix slash in unit test urls (#3182) 1 year ago
34-Auth-Proxy-and-SOAP-Server.t Fix slash in unit test urls (#3182) 1 year ago
35-My-session.t Merge branch '2996-invalid-url-for-application-logo-in-myapplications-web-service' into 'v2.0' 2 years ago
35-REST-OAuth2-deny.t Update unit tests for #3415 4 months ago
35-REST-OAuth2.t Revert all due to bad merge and branches management 5 days ago
35-REST-auth-password-server.t Skip some tests when dependencies are missing (#3218) 1 year ago
35-REST-config-backend.t Make sure tests don't load config files from environment 1 month ago
35-REST-export-password.t Fix slash in unit test urls (#3182) 1 year ago
35-REST-sessions-with-AuthBasic-handler-hashed-sessions.t Fix slash in unit test urls (#3182) 1 year ago
35-REST-sessions-with-AuthBasic-handler-with-2FA.t Update unit tests (#3258) 10 months ago
35-REST-sessions-with-AuthBasic-handler.t Fix slash in unit test urls (#3182) 1 year ago
35-REST-sessions-with-REST-server-and-MessageBroker-Redis-and-hashedStore.t Fix test when TESTREDIS isn't set 7 months ago
35-REST-sessions-with-REST-server-and-MessageBroker-Redis.t Fix test when TESTREDIS isn't set 7 months ago
35-REST-sessions-with-REST-server.t Fix slash in unit test urls (#3182) 1 year ago
35-SOAP-config-backend.t Make sure tests don't load config files from environment 1 month ago
35-SOAP-sessions-with-SOAP-server.t Fix slash in unit test urls (#3182) 1 year ago
36-Combination-Custom.t Update test to use getSession (#3075) 2 years ago
36-Combination-Kerberos-multiple-domains.t Use minified kerberos script (#3259) 10 months ago
36-Combination-Password.t Use & fix warnings 3 years ago
36-Combination-SSL-Kerberos.t Skip some tests when dependencies are missing (#3218) 1 year ago
36-Combination-with-Choice.t Use & fix warnings 3 years ago
36-Combination-with-TOTP.t Update unit tests (#3258) 10 months ago
36-Combination-with-over.t Use & fix warnings 3 years ago
36-Combination-with-token.t Use & fix warnings 3 years ago
36-Combination.t Update test to use getSession (#3075) 2 years ago
37-CAS-App-to-SAML-IdP-POST.t Update unit tests for #3415 4 months ago
37-Issuer-Display-Rule.t Skip 37-Issuer-Display-Rule test if Lasso not available 2 years ago
37-Issuer-Timeout.t Unit test for #2186 1 month ago
37-Logout-from-2-chained-SAML-SP-SOAP.t Fix slash in unit test urls (#3182) 1 year ago
37-Logout-from-OIDC-RP-to-SAML-IDP-Redirect.t Update unit tests for #3415 4 months ago
37-Logout-from-OIDC-RP-to-SAML-IDP-SOAP.t Update unit tests for #3415 4 months ago
37-Logout-from-OIDC-RP-to-SAML-SP.t Update unit tests for #3415 4 months ago
37-OIDC-RP-to-SAML-IdP.t Update unit tests for #3415 4 months ago
37-OIDC-and-DBI-with-choice-and-override.t Skip some tests when dependencies are missing (#3218) 1 year ago
37-SAML-SP-GET-to-SAML-with-Logout.t Fix slash in unit test urls (#3182) 1 year ago
37-SAML-SP-POST-to-CAS-server-with-Choice.t Fix slash in unit test urls (#3182) 1 year ago
37-SAML-SP-POST-to-CAS-server.t Fix slash in unit test urls (#3182) 1 year ago
37-SAML-SP-to-OIDC-OP.t Fix unit test for #2186 1 month ago
38-No-persistent-session.t Update unit tests (#3258) 10 months ago
39-Failing-RP-Logout.t Typo 10 months ago
40-Notifications-Explorer-JSON-File.t Unit test for #3278 12 months ago
40-Notifications-Explorer-XML-File.t Use & fix warnings 3 years ago
40-Notifications-JSON-DBI.t Use & fix warnings 3 years ago
40-Notifications-JSON-File-with-token.t Use & fix warnings 3 years ago
40-Notifications-JSON-File.t Unit test for #3347 7 months ago
40-Notifications-JSON-LDAP.t Use & fix warnings 3 years ago
40-Notifications-JSON-Server.t Unit test for #3278 12 months ago
40-Notifications-PublicNotif.t added test checking for notification presence after failed login 4 months ago
40-Notifications-XML-DBI.t Use & fix warnings 3 years ago
40-Notifications-XML-File.t Use & fix warnings 3 years ago
40-Notifications-XML-Server.t Drop bundled LWP::Protocol::PSGI 2 years ago
41-Captcha-old-api.t Use & fix warnings 3 years ago
41-Captcha-with-LDAP.t Add yubikey registration tests 1 year ago
41-Captcha-with-rule.t Change captcha_login_enabled to boolOrExpr (#3222) 1 year ago
41-Captcha.t Update unit text (#3386) 6 months ago
41-Token-with-global-storage.t Use & fix warnings 3 years ago
41-Token.t Use & fix warnings 3 years ago
42-Register-Custom.t Use & fix warnings 3 years ago
42-Register-Demo-with-CustomBody.t Use & fix warnings 3 years ago
42-Register-Demo-with-captcha.t Update unit text (#3386) 6 months ago
42-Register-Demo-with-token.t Use & fix warnings 3 years ago
42-Register-Demo.t FIx unit tests & default confs (#2887) 3 years ago
42-Register-LDAP.t Remove useless warnings in unit tests 3 years ago
42-Register-Security.t Use & fix warnings 3 years ago
43-MailPasswordReset-Choice.t Use & fix warnings 3 years ago
43-MailPasswordReset-Combination-LDAP.t Remove useless warnings in unit tests 3 years ago
43-MailPasswordReset-Combination.t Use & fix warnings 3 years ago
43-MailPasswordReset-DBI.t Update unit tests (#2973) 2 years ago
43-MailPasswordReset-Hook.t Use & fix warnings 3 years ago
43-MailPasswordReset-LDAP.t Remove useless warnings in unit tests 3 years ago
43-MailPasswordReset-with-captcha.t Update unit text (#3386) 6 months ago
43-MailPasswordReset-with-token.t No longer search for logos in mail unit tests 2 years ago
43-MailPasswordReset.t No longer search for logos in mail unit tests 2 years ago
44-CertificateResetByMail-Demo.t FIx unit tests & default confs (#2887) 3 years ago
44-CertificateResetByMail-LDAP.t Remove useless warnings in unit tests 3 years ago
50-IssuerGet.t Use & fix warnings 3 years ago
50-IssuerJitsiJWT.t Unit test for #3479 1 month ago
51-OIDC-Internal-Token-Exchange-no-audience.t Fix slash in unit test urls (#3182) 1 year ago
51-OIDC-Internal-Token-Exchange.t Fix slash in unit test urls (#3182) 1 year ago
56-CheckDevOps-with-Download.t Merge hidden attribute parameters (#2878) 3 years ago
56-CheckDevOps.t Use & fix warnings 3 years ago
57-GlobalLogout-with-Confirmation.t Bypass confirmation page with GlobalLogout (#2908) 3 years ago
57-GlobalLogout-with-Double-cookies-Single-session.t Use & fix warnings 3 years ago
57-GlobalLogout-with-Double-cookies.t Use & fix warnings 3 years ago
57-GlobalLogout-without-Timer.t Bypass confirmation page with GlobalLogout (#2908) 3 years ago
57-GlobalLogout.t #3075 in progress 2 years ago
57-LogoutForward.t Use & fix warnings 3 years ago
57-LogoutForward2153.t Use & fix warnings 3 years ago
58-DecryptValue-with-custom-function.t Use & fix warnings 3 years ago
58-DecryptValue-with-internal-function.t Use & fix warnings 3 years ago
59-Double-cookies-Refresh-and-Logout.t Store _session_hashed in session if session is hashed 2 years ago
59-Double-cookies-for-Double-sessions.t #3075 in progress 2 years ago
59-Double-cookies-for-a-Single-session.t Use & fix warnings 3 years ago
59-Secured-cookie-Refresh-and-Logout.t Use & fix warnings 3 years ago
61-AdaptativeAuthenticationLevel.t Unit test for #3255 1 year ago
61-BruteForceProtection-with-Incremental-lockTimes-and-TOTP.t Update unit tests (#3258) 10 months ago
61-BruteForceProtection-with-Incremental-lockTimes.t Use & fix warnings 3 years ago
61-BruteForceProtection.t Use & fix warnings 3 years ago
61-CrowdSec-warn.t Push bad authentication to Crowdsec without "ban" 3 months ago
61-CrowdSec.t Push bad authentication to Crowdsec without "ban" 3 months ago
61-CrowdSecAgent.t use HTTP::Status to get messages in PSGI error pages 2 months ago
61-ForceAuthn.t Use & fix warnings 3 years ago
61-GrantSession.t Unit test for #3389 4 months ago
61-LocationDetect.t Unit test for #3309 10 months ago
61-NewLocationWarning-Custom.t feat: add timezone to new location warning 1 year ago
61-NewLocationWarning.t feat: add timezone to new location warning 1 year ago
61-Session-ActivityTimeout.t Use & fix warnings 3 years ago
61-Session-Timeout.t Use & fix warnings 3 years ago
61-WebCron.t Add RT without _oidcRtUpdate in test 4 months ago
62-Refresh-plugin.t Store _session_hashed in session if session is hashed 2 years ago
62-SingleSession-with-History.t Use & fix warnings 3 years ago
62-SingleSession-with-Rules.t Use & fix warnings 3 years ago
62-SingleSession.t Update unit tests for new register/withHandler methods 2 years ago
62-UpgradeSession-disabled.t Use & fix warnings 3 years ago
62-UpgradeSession.t Update unit test for choice during upgrade (#2044) 12 months ago
63-History.t #3102: Adding ordering to login history columns. 2 years ago
64-StayConnected-single-connection.t Allow customization of registerBrowser.tpl (#3466) 2 months ago
64-StayConnected-singleSession.t Allow customization of registerBrowser.tpl (#3466) 2 months ago
64-StayConnected-with-History.t Update tests for TrustedBrowser 2 years ago
64-StayConnected-with-rule.t Fix StayConnected test 2 years ago
64-StayConnected-without-fingerprint-checking.t Update tests for TrustedBrowser 2 years ago
64-StayConnected.t Unit test for #3228 1 year ago
65-AutoSignin.t Use & fix warnings 3 years ago
65-CheckState-with-choice.t Add user without password test + choice parameter 12 months ago
65-CheckState.t [CheckState] require a parameter to test sessions databases 12 months ago
66-CDA-PSGI-Try.t Use & fix warnings 3 years ago
66-CDA-already-auth.t Update unit tests for new register/withHandler methods 2 years ago
66-CDA-wildcard.t Use & fix warnings 3 years ago
66-CDA-with-REST.t Update unit tests for new register/withHandler methods 2 years ago
66-CDA-with-SOAP.t Update unit tests for new register/withHandler methods 2 years ago
66-CDA-with-doubleCookies.t Use & fix warnings 3 years ago
66-CDA.t Unit test for #3171 1 year ago
67-CheckUser-with-Global-token.t Use & fix warnings 3 years ago
67-CheckUser-with-Impersonation-and-Macros.t Use & fix warnings 3 years ago
67-CheckUser-with-UnrestrictedUser.t Use & fix warnings 3 years ago
67-CheckUser-with-hidden-attributes.t Merge hidden attribute parameters (#2878) 3 years ago
67-CheckUser-with-history.t Use & fix warnings 3 years ago
67-CheckUser-with-issuer-SAML-POST.t Update test for behavior change (#3182) 1 year ago
67-CheckUser-with-rules.t Use & fix warnings 3 years ago
67-CheckUser-with-token.t Use & fix warnings 3 years ago
67-CheckUser.t Drop debug mode 8 months ago
68-ContextSwitching-with-2F-allowed.t Update unit tests (#3258) 10 months ago
68-ContextSwitching-with-2F.t Update unit tests (#3258) 10 months ago
68-ContextSwitching-with-Impersonation.t Use & fix warnings 3 years ago
68-ContextSwitching-with-Logout.t Use & fix warnings 3 years ago
68-ContextSwitching-with-TOTP-and-Notification.t Update unit tests (#3258) 10 months ago
68-ContextSwitching-with-UnrestrictedUser.t Use & fix warnings 3 years ago
68-ContextSwitching.t Use & fix warnings 3 years ago
68-FindUser-with-BadChoice-and-token.t Use & fix warnings 3 years ago
68-FindUser-with-Choice-and-token.t Update unit test (#3394) 6 months ago
68-FindUser-with-Combination.t Remove useless warnings in unit tests 3 years ago
68-FindUser-with-DBI.t Use & fix warnings 3 years ago
68-FindUser-with-Demo-and-captcha.t Update unit test (#3394) 6 months ago
68-FindUser-with-Demo-and-required-params.t Use & fix warnings 3 years ago
68-FindUser-with-Demo-and-token.t Update unit test (#3394) 6 months ago
68-FindUser-with-Demo.t Use & fix warnings 3 years ago
68-FindUser-with-LDAP.t Remove useless warnings in unit tests 3 years ago
68-FindUser-with-REST.t Drop bundled LWP::Protocol::PSGI 2 years ago
68-FindUser-with-UpgradeSession.t Use & fix warnings 3 years ago
68-FindUser-without-Impersonation.t Use & fix warnings 3 years ago
68-FindUser-without-attribute.t Use & fix warnings 3 years ago
68-Impersonation-with-2F.t Update unit tests (#3258) 10 months ago
68-Impersonation-with-Custom-Plugin.t Use & fix warnings 3 years ago
68-Impersonation-with-History.t Use & fix warnings 3 years ago
68-Impersonation-with-TOTP.t Update unit tests (#3258) 10 months ago
68-Impersonation-with-UnrestrictedUser.t Use & fix warnings 3 years ago
68-Impersonation-with-doubleCookies.t Store _session_hashed in session if session is hashed 2 years ago
68-Impersonation-with-filtered-merge.t Use & fix warnings 3 years ago
68-Impersonation-with-merge.t Use & fix warnings 3 years ago
68-Impersonation.t Store _session_hashed in session if session is hashed 2 years ago
68-InitializePasswordReset.t add initialize-password-reset plugin (#2872) 2 years ago
70-2F-Password.t Update unit tests (#3258) 10 months ago
70-2F-TOTP-8-with-global-storage.t Update unit tests (#3258) 10 months ago
70-2F-TOTP-Hook.t Update unit tests (#3258) 10 months ago
70-2F-TOTP-encryption.t Update unit tests (#3258) 10 months ago
70-2F-TOTP-multiple-register.t Update unit tests (#3258) 10 months ago
70-2F-TOTP-multiple.t Unit test for #3126 2 years ago
70-2F-TOTP-with-History-and-Refresh.t Update unit tests (#3258) 10 months ago
70-2F-TOTP-with-LDAP.t Fix unit tests for LDAP grace logins 7 months ago
70-2F-TOTP-with-Range.t Update unit tests (#3258) 10 months ago
70-2F-TOTP-with-TTL-and-JSON.t Update unit tests (#3258) 10 months ago
70-2F-TOTP-with-TTL-and-XML.t Update unit tests (#3258) 10 months ago
70-2F-TOTP-with-TTL.t Update unit tests (#3258) 10 months ago
70-2F-targetAuthnLevel.t Unit test for #1848 (choice) 1 year ago
72-2F-REST-CodeActivation-Resend.t Drop bundled LWP::Protocol::PSGI 2 years ago
72-2F-REST-with-History.t Drop bundled LWP::Protocol::PSGI 2 years ago
74-2F-Required-Issuer-Timeouts.t Update unit tests (#3258) 10 months ago
74-2F-Required.t Update unit tests (#3258) 10 months ago
76-2F-Ext-with-BruteForce.t Fix unit tests 4 months ago
76-2F-Ext-with-CodeActivation-Resend.t Fix unit tests 4 months ago
76-2F-Ext-with-CodeActivation.t Fix unit tests 4 months ago
76-2F-Ext-with-GrantSession.t Fix unit tests 4 months ago
76-2F-Ext-with-History.t Fix unit tests 4 months ago
77-2F-Extra-Register.t Update unit tests (#3258) 10 months ago
77-2F-Extra.t Fix unit tests 4 months ago
77-2F-Mail-SessionKey.t Fix unit tests 4 months ago
77-2F-Mail-with-global-storage.t Fix unit tests 4 months ago
77-2F-Mail.t Non regression test for mail2fTimeout (#3425) 4 months ago
77-2F-Radius.t Fix unit tests 4 months ago
77-2F-Retry.t Merge branch 'login-history-date-3115' into 'v2.0' 2 years ago
77-2F-Trust.t Stay connected checkbox is no more displayed if browser is already trusted 1 month ago
78-2F-Upgrade-Many.t Fix unit tests 4 months ago
78-2F-Upgrade.t Fix unit tests 4 months ago
78-2F-UpgradeOnly-with-forceFlag.t Update unit tests (#3258) 10 months ago
78-2F-UpgradeOnly-without-2F.t Drop U2F (#3153) 2 years ago
78-2F-UpgradeOnly.t Fix unit tests 4 months ago
79-2F-Yubikey-from-Session.t Drop bundled LWP::Protocol::PSGI 2 years ago
79-2F-Yubikey.t Change 2FA deletion check to use custom request header (#3258) 10 months ago
80-2F-Okta.t Convert Lib::Okta to a Mouse role (#3038) 2 years ago
81-MostViewedApplications.t fix: tests fail when lasso is missing 1 year ago
90-Translations.t Use & fix warnings 3 years ago
91-Handler-cache-cleaned.t Fix unit tests 4 months ago
91-Memory-Leak.t Use & fix warnings 3 years ago
91-no-console.log.t Add test to verify #3418 3 months ago
92-Required-Auth-Methods.t Merge branch 'v2.0' into 3075-secured-sessions 2 years ago
92-Required-Issuer-Methods.t Add test to verify required methods 2 years ago
92-Required-UserDB-Methods.t t/92* may fail on new object 2 years ago
99-Bad-logLevel.t Use & fix warnings 3 years ago
99-Dont-load-Dumper.t Make sure tests don't load config files from environment 1 month ago
99-pod.t Use & fix warnings 3 years ago
AfterDataCustomPlugin.pm
CaptchaOldApi.pm
CasHookPlugin.pm
ChoiceHookPlugin.pm Unit test for getAuthChoice hook (#3246) 1 year ago
Custom.pm
CustomMenu.pm Unit test for #3203 1 year ago
DbiCustomHash.pm Unit test for #3231 1 year ago
HistoryPlugin.pm
LogoutFail.pm Always logout even if issuer have errors 2 years ago
OidcHookPlugin.pm Unit tests for #3282 2 months ago
PasswordHookPlugin.pm
README.md
SamlHookPlugin.pm
SendHtmlPlugin.pm Unit tests for #2885 2 years ago
SessionExplorer.pm Add tests for #3273 5 months ago
Test2FA.pm Unit test for 'sfAfterVerify' (#3174) 1 year ago
Test2FRegister.pm Unit tests for #3174 1 year ago
TestMail.pm Remove useless debug line 2 years ago
TestStdLogger.pm Add a multi-handler aware logger in test lib 2 years ago
cas-lib.pm CAS test function library 3 years ago
lmConf-1.json Improve t/78-2F-Upgrade.t test 1 year ago
main-idps-renater-metadata.xml Unit tests for SAML federation management (#2731) 3 years ago
main-sps-renater-metadata.xml Merge branch 'v2.0' into fix-subject-id-req-2934 2 years ago
oidc-lib.pm Unit test for #3279 12 months ago
parse-dir.pm test: skip test when dependencies are missing (#3218) 1 year ago
pdata.pm
pubsub.pm Rename pubsub server and add systemd files 5 months ago
saml-lib.pm Unit test for SAML signature key override (#3374) 2 months ago
sendCode.pl
sendOTP.pl
separate-handler.pm
sfHookPlugin.pm Unit tests for #3174 1 year ago
smtp.pm
test-ldap.pm Add function to reset LDAP data 6 months ago
test-lib.pm Merge branch '3389-fix-grantsession-cancel' into 'v2.0' 3 weeks ago
test-psgi.pm Make sure tests don't load config files from environment 1 month ago
test-yubikey.pm
vrfyOTP.pl

README.md

NAME

test-lib.pm - Test framework for LLNG portal

SYNOPSIS

use Test::More;
use strict;
use IO::String;

require 't/test-lib.pm';

my $res;

my $client = LLNG::Manager::Test->new( {
    ini => {
        logLevel => 'error',
        #...
    }
  }
);

ok(
    $res = $client->_post(
        '/',
        IO::String->new('user=dwho&password=dwho'),
        length => 23
    ),
    'Auth query'
);
count(1);
expectOK($res);
my $id = expectCookie($res);

clean_sessions();
done_testing( count() );

DESCRIPTION

This test library permits to simulate browser navigation.

Functions

In these functions, $res is the result of a LLNG::Manager::Test::_get() or LLNG::Manager::Test::_post() call (see below).

count($inc)

Returns number of tests done. Increment test number if an argument is given

explain( $result, $expected_result )

Used to display error if test fails:

ok( $res->[0] == 302, 'Get redirection' ) or
  explain( $res->[0], 302 );

clean_sessions()

Clean sessions created during tests

expectRedirection( $res, $location )

Verify that request result is a redirection to $location. $location can be:

  • a string: location must match exactly

  • a regexp: location must match this regexp. In this case, the list of matching strings are returned. Example:

      my( $uri, $query ) = expectRedirection( $res, qr#http://host(/[^\?]*)?(.*)$# );
    

expectAutoPost(@args)

Same behaviour as expectForm() but verify also that form method is post.

TODO: verify javascript

expectForm( $res, $hostRe, $uriRe, @requiredFields )

Verify form in HTML result and return ( $host, $uri, $query, $method ):

  • verify that a GET/POST form exists
  • if a $hostRe regexp is given, verify that form target matches and populates $host. Skipped if $hostRe eq "#"
  • if a $uriRe regexp is given, verify that form target matches and populates $uri
  • if @requiredFields exists, verify that each element is an input name
  • build form-url-encoded string looking at parameters/values and store it in $query

expectAuthenticatedAs($user)

Verify that result has a Lm-Remote-User header and value is $user

expectOK($res)

Verify that returned code is 200

expectBadRequest($res)

Verify that returned code is 400. Note that it works only for Ajax request (see below).

expectReject( $res, $code )

Verify that returned code is 401 and JSON result contains error:"$code". Note that it works only for Ajax request (see below).

expectCookie( $res, $cookieName )

Check if a Set-Cookie exists and set a cookie named $cookieName. Return its value.

exceptCspFormOK( $res, $host )

Verify that Content-Security-Policy header allows to connect to $host.

getCookies($res)

Returns an hash ref with names => values of cookies set by server.

getHeader( $res, $hname )

Returns value of first header named $hname in $res response.

getRedirection($res)

Returns value of Location header.

getUser($res)

Returns value of Lm-Remote-User header.

LLNG::Manager::Test Class

Accessors

  • app: built application
  • class: class to test (default Lemonldap::NG::Portal::Main)
  • p: portal object
  • ini: initialization parameters ($defaultIni values + given parameters)

Methods

logout($id)

Launch a /?logout=1 request an test:

  • if response is 200
  • if cookie 'lemonldap' and 'lemonldappdata' have no value
  • if a GET request with previous cookie value ($i) is rejected

_get( $path, %args )

Simulates a GET requests to $path. Accepted arguments:

  • accept: accepted content, default to Ajax request. Use 'text/html' to test content (to launch a expectForm() for example).
  • cookie: full cookie string
  • custom: additional headers (hash ref only)
  • ip: remote address. Default to 127.0.0.1
  • method: default to GET. Only GET/DELETE values are acceptable (use _post() if you want to launch a POST/PUT request)
  • query: query string
  • referer
  • remote_user: REMOTE_USER header value

_post( $path, $body, %args )

Same as _get except that a body is required. $body must be a file handle. Example with IO::String:

ok(
    $res = $client->_post(
        '/',
        IO::String->new('user=dwho&password=dwho'),
        length => 23
    ),
    'Auth query'
);

_delete( $path, %args )

Call _get() with method set to DELETE.

_put( $path, $body, %args )

Call _post() with method set to PUT