lemonldap-ng/lemonldap-ng-portal/t
Maxime Besson 012b41b2b1 add Xpath lookup method in test lib 2022-10-10 16:56:33 +02:00
..
gpghome clean 2022-02-13 14:10:19 +01:00
lib Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
sessions SAML in progress (#595) 2016-11-22 20:55:10 +00:00
sessions2 Rename _loginHistory (#1169) 2017-03-21 21:00:37 +00:00
testslapd Unit test for #2796 2022-09-15 14:25:40 +02:00
01-AuthDemo.t Update langs & conf files & doc & test (#2674) 2022-08-30 23:17:03 +02:00
01-BuildUrl.t tidy 2022-02-16 17:43:29 +01:00
01-CSP-and-CORS-headers.t Add CORS headers to error pages (#2380) 2020-11-12 14:34:16 +01:00
01-EnablePasswordDisplay.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
01-Handler-redirection-and-URL-check-by-portal.t tidy 2022-02-16 17:43:29 +01:00
01-Reject-Hashes-in-URL.t Fix test 2021-03-02 07:58:25 +01:00
01-Unauth-Logout.t tidy 2022-02-16 17:43:29 +01:00
01-WebAuthn-Registration.t tidy 2022-02-16 17:43:29 +01:00
01-WebAuthn.t Do not check selfRegistration (#2712) 2022-08-28 23:15:04 +02:00
01-pdata.t tidy with new conf 2019-02-07 09:27:56 +01:00
02-Password-Demo-Hook.t Unit tests for (#2510) 2021-06-02 11:08:07 +02:00
02-Password-Demo-Local-Ppolicy.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
02-Password-Demo-Local-SpeChars-Ppolicy.t Improve unit tests & Fix regex (#2509) 2021-04-21 22:14:47 +02:00
02-Password-Demo-Local-noPpolicy.t Improve unit tests & Fix regex (#2509) 2021-04-21 22:14:47 +02:00
02-Password-Demo.t Fix warning 2021-02-16 18:49:37 +01:00
03-ConfTimeout.t Add timeout for configuration load (#1908) 2019-09-02 23:01:09 +02:00
03-SessionTimeout.t Tidy 2020-02-20 23:37:05 +01:00
03-XSS-protection.t Make sure empty referers are valid during logout 2021-07-09 15:02:46 +02:00
04-language-selection.t Improve unit test (#2605) 2021-09-23 22:45:48 +02:00
10-AuthCustom.t Unit tests for *::Custom 2021-12-19 18:19:22 +01:00
19-Auth-Null.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
20-Auth-DBI-utf8.t tidy 2022-02-16 17:43:29 +01:00
20-Auth-and-password-DBI-dynamic-hash.t Tidy 2020-02-20 23:37:05 +01:00
20-Auth-and-password-DBI.t Parallel tests 2019-08-29 10:48:55 +02:00
21-Auth-LDAP-Policy-Combination.t tidy 2022-02-16 17:43:29 +01:00
21-Auth-LDAP-Policy-only.t Set user and oldpassword fields into reset password form & Improve unit tests (#2377) 2020-11-09 13:27:16 +01:00
21-Auth-LDAP-Policy.t Set user and oldpassword fields into reset password form & Improve unit tests (#2377) 2020-11-09 13:27:16 +01:00
21-Auth-LDAP-attributes.t tidy 2022-02-16 17:43:29 +01:00
21-Auth-and-password-LDAP.t Improve unit test (#2178) 2020-04-27 22:13:21 +02:00
22-Auth-and-password-AD.t tidy 2022-02-16 17:43:29 +01:00
23-Auth-and-password-REST.t tidy with new conf 2019-02-07 09:27:56 +01:00
24-AuthApache.t tidy with new conf 2019-02-07 09:27:56 +01:00
24-AuthKerberos.t Fix warnings 2020-11-17 23:23:17 +01:00
25-AuthSlave-with-Choice.t Tidy 2020-02-20 23:37:05 +01:00
25-AuthSlave-with-Credentials.t Improve unit tests (#1935) 2019-09-15 19:39:27 +02:00
26-AuthRadius.t tidy 2022-02-16 17:43:29 +01:00
26-AuthRemote.t tidy with new conf 2019-02-07 09:27:56 +01:00
27-AuthProxy-with-choice.t Spit Remote and Proxy Auth cookie name parameter (#2613) 2021-09-10 22:40:11 +02:00
27-AuthProxy.t Test & code refactoring(#2601) 2021-09-06 17:10:55 +02:00
28-AuthChoice-Custom.t Unit tests for *::Custom 2021-12-19 18:19:22 +01:00
28-AuthChoice-Slave-rememberAuthChoice.t add RememberAuthChoice Plugin (references #2737) 2022-04-20 17:36:33 +00:00
28-AuthChoice-and-password.t Parallel tests 2019-08-29 10:48:55 +02:00
28-AuthChoice-with-captcha.t Append autocomplete attribute & fix unit tests (#2585) 2021-08-05 22:45:31 +02:00
28-AuthChoice-with-info.t Unit test for #2445 2021-01-20 15:37:31 +01:00
28-AuthChoice-with-over.t Fix warning messages 2020-02-16 14:48:55 +01:00
28-AuthChoice-with-rules.t Refactor $req->{cspFormAction} (#2513) 2021-04-23 09:02:24 +02:00
28-AuthChoice-with-token.t Fix unit tests after #2616 2021-09-15 14:00:52 +02:00
29-AuthGPG.t tidy 2022-02-16 17:43:29 +01:00
29-AuthSSL.t Parallel tests 2019-08-29 10:48:55 +02:00
30-Auth-ResolutionRule.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
30-Auth-SAML-with-choice.t tidy 2022-02-16 17:43:29 +01:00
30-Auth-and-issuer-SAML-Artifact-with-SOAP-SLO-IdP-initiated.t Fix incorrect SOAP content type in SAML issuer (#2263) 2020-08-10 15:06:00 +02:00
30-Auth-and-issuer-SAML-Artifact-with-SOAP-SLO.t Fix incorrect SOAP content type in SAML issuer (#2263) 2020-08-10 15:06:00 +02:00
30-Auth-and-issuer-SAML-Metadata.t tidy 2022-02-16 17:43:29 +01:00
30-Auth-and-issuer-SAML-NameID.t Fix warnings 2021-07-28 12:10:55 +02:00
30-Auth-and-issuer-SAML-POST-IdP-initiated.t tidy 2022-02-16 17:43:29 +01:00
30-Auth-and-issuer-SAML-POST-Missing-SLO.t Tidy 2020-02-20 23:37:05 +01:00
30-Auth-and-issuer-SAML-POST.t Unit test for #2799 2022-09-21 10:40:15 +02:00
30-Auth-and-issuer-SAML-Redirect-IdP-initiated.t tidy 2022-02-16 17:43:29 +01:00
30-Auth-and-issuer-SAML-Redirect-MultipleSP-Missing-SLO.t Tidy 2020-02-20 23:37:05 +01:00
30-Auth-and-issuer-SAML-Redirect-MultipleSP.t Unit test for #2449 2021-01-29 09:45:50 +01:00
30-Auth-and-issuer-SAML-Redirect-With-Info.t Tidy 2020-02-20 23:37:05 +01:00
30-Auth-and-issuer-SAML-Redirect.t Fix warnings 2020-12-23 16:23:28 +01:00
30-CDC.t tidy 2022-02-16 17:43:29 +01:00
30-SAML-Head-to-Tail-POST.t Tidy 2020-02-20 23:37:05 +01:00
30-SAML-Macros.t Unit test for #2378 2020-11-11 13:39:37 +01:00
30-SAML-POST-Logout-when-expired.t Fix unit test (bad tidy?) 2020-05-24 01:13:44 +02:00
30-SAML-POST-Logout-when-removed.t Typo (#2184) 2020-05-02 13:31:36 +02:00
30-SAML-POST-with-2F-UpgradeOnly.t Set on-time-code autocomplete (#2585) 2021-08-20 17:20:58 +02:00
30-SAML-POST-with-2F-and-Notification.t Set on-time-code autocomplete (#2585) 2021-08-20 17:20:58 +02:00
30-SAML-POST-with-Notification.t Tidy 2020-02-20 23:37:05 +01:00
30-SAML-ReAuth-with-Cmb-Kerberos.t Unit test for #2615 2022-07-21 16:04:16 +02:00
30-SAML-ReAuth-with-choice.t Fix unit tests for new renew session URL (#2124) 2020-09-04 17:16:11 +02:00
30-SAML-ReAuth.t Fix unit tests for new renew session URL (#2124) 2020-09-04 17:16:11 +02:00
30-SAML-RelayState.t Fix unit test for relaystate (#2671) 2021-12-16 12:14:23 +01:00
30-SAML-SP-rule.t Tidy 2020-02-20 23:37:05 +01:00
31-Auth-and-issuer-CAS-Logout-20.t Tidy 2020-02-20 23:37:05 +01:00
31-Auth-and-issuer-CAS-Logout-30.t Tidy 2020-02-20 23:37:05 +01:00
31-Auth-and-issuer-CAS-XSS-on-logout.t Tidy 2020-02-20 23:37:05 +01:00
31-Auth-and-issuer-CAS-declared-app-multiple-urls.t tidy 2022-02-16 17:43:29 +01:00
31-Auth-and-issuer-CAS-declared-app-userattr.t tidy 2022-02-16 17:43:29 +01:00
31-Auth-and-issuer-CAS-declared-app.t tidy 2022-02-16 17:43:29 +01:00
31-Auth-and-issuer-CAS-declared-apps.t Tidy 2020-02-20 23:37:05 +01:00
31-Auth-and-issuer-CAS-default.t tidy 2022-02-16 17:43:29 +01:00
31-Auth-and-issuer-CAS-proxied.t tidy 2022-02-16 17:43:29 +01:00
31-Auth-and-issuer-CAS-with-choice-and-cancel.t Tidy 2020-02-20 23:37:05 +01:00
31-Auth-and-issuer-CAS-with-choice.t tidy 2022-02-16 17:43:29 +01:00
32-Auth-and-issuer-OIDC-authorization_code-OP-logout.t tidy 2022-02-16 17:43:29 +01:00
32-Auth-and-issuer-OIDC-authorization_code-jwt-userinfo.t tidy 2022-02-16 17:43:29 +01:00
32-Auth-and-issuer-OIDC-authorization_code-public_client.t tidy 2022-02-16 17:43:29 +01:00
32-Auth-and-issuer-OIDC-authorization_code-with-authchoice.t tidy 2022-02-16 17:43:29 +01:00
32-Auth-and-issuer-OIDC-authorization_code-with-info.t tidy 2022-02-16 17:43:29 +01:00
32-Auth-and-issuer-OIDC-authorization_code-with-none-alg.t tidy 2022-02-16 17:43:29 +01:00
32-Auth-and-issuer-OIDC-authorization_code.t Unit test for #2713 2022-06-27 11:23:49 +02:00
32-Auth-and-issuer-OIDC-hybrid.t Remove useless vars from OIDC tests 2021-02-01 18:20:32 +01:00
32-Auth-and-issuer-OIDC-implicit-no-token.t Remove useless vars from OIDC tests 2021-02-01 18:20:32 +01:00
32-Auth-and-issuer-OIDC-implicit.t tidy 2022-02-16 17:43:29 +01:00
32-Auth-and-issuer-OIDC-sorted.t tidy 2022-02-16 17:43:29 +01:00
32-CAS-10.t Refactor switch() in portal tests 2020-02-05 19:20:39 +01:00
32-CAS-Gateway.t Update unit tests for #2596 2021-08-26 18:03:35 +02:00
32-CAS-Hooks.t Unit tests for #2533 2021-06-01 11:28:34 +02:00
32-CAS-Macros.t Unit tests for #2280 2020-08-17 22:08:08 +02:00
32-CAS-Prefix.t tidy 2022-02-16 17:43:29 +01:00
32-CAS-Proxy.t Add unit tests (#2656) 2022-01-14 17:14:37 +01:00
32-CAS-Security.t Unit test for #2654 2022-01-14 17:14:37 +01:00
32-OIDC-ClaimTypes.t Unit tests for (#2330) 2020-11-06 19:00:52 +01:00
32-OIDC-ClientCredentials-Grant.t tidy 2022-02-16 17:43:29 +01:00
32-OIDC-Code-Flow-with-2F-UpgradeOnly.t tidy 2022-02-16 17:43:29 +01:00
32-OIDC-Code-Flow-with-2F.t tidy 2022-02-16 17:43:29 +01:00
32-OIDC-Grant-Type-OAuth2-Handler-Rules.t tidy 2022-02-16 17:43:29 +01:00
32-OIDC-Grant-Type-Rules.t tidy 2022-02-16 17:43:29 +01:00
32-OIDC-Hooks.t Include extra keys in oidcGenerateUserInfoResponse (#2725) 2022-07-18 17:59:18 +02:00
32-OIDC-Logout-from-RP-bypass-confirm.t #2607 Adding test about OIDC OP logout confirmation bypass when initiated by RP 2022-07-08 16:44:35 +02:00
32-OIDC-Logout-redirect-uri-not-allowed.t Test checking post logout redirect failure when URI is not allowed 2022-07-08 17:10:38 +02:00
32-OIDC-Macro.t Remove useless vars from OIDC tests 2021-02-01 18:20:32 +01:00
32-OIDC-Offline-Session.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
32-OIDC-Password-Grant-with-Bruteforce-and-Choice.t Unit test for #2550 2021-06-21 09:38:03 +02:00
32-OIDC-Password-Grant.t Unit tests for #2622 2021-10-27 00:18:56 +02:00
32-OIDC-RP-rule.t Remove useless vars from OIDC tests 2021-02-01 18:20:32 +01:00
32-OIDC-Refresh-Token.t tidy 2022-02-16 17:43:29 +01:00
32-OIDC-Register.t Remove useless vars from OIDC tests 2021-02-01 18:20:32 +01:00
32-OIDC-Token-Introspection.t Unit test for #2496 2021-06-03 18:31:38 +02:00
32-OIDC-Token-Security.t Unit tests for CORS on OIDC endpoints (#2567) 2021-07-26 15:44:20 +02:00
33-Auth-and-issuer-OpenID2.t Tidy 2020-02-20 23:37:05 +01:00
34-Auth-Proxy-and-REST-Server.t tidy 2022-02-16 17:43:29 +01:00
34-Auth-Proxy-and-REST-sessions.t tidy 2022-02-16 17:43:29 +01:00
34-Auth-Proxy-and-SOAP-Server.t Tidy 2020-02-20 23:37:05 +01:00
35-My-session.t Improve unit test (#2686) 2022-01-14 21:59:15 +01:00
35-REST-auth-password-server.t Fix warnings (#2611) 2021-09-10 22:40:23 +02:00
35-REST-config-backend.t Tidy 2020-02-20 23:37:05 +01:00
35-REST-export-password.t Tidy 2020-02-20 23:37:05 +01:00
35-REST-sessions-with-AuthBasic-handler.t Parallel tests 2019-08-29 10:48:55 +02:00
35-REST-sessions-with-REST-server.t Do not use arrays in REST sessions (#2190) 2020-05-12 16:05:38 +02:00
35-SOAP-config-backend.t tidy 2022-02-16 17:43:29 +01:00
35-SOAP-sessions-with-SOAP-server.t Tidy 2020-02-20 23:37:05 +01:00
36-Combination-Custom.t tidy 2022-02-16 17:43:29 +01:00
36-Combination-Kerberos-or-Demo.t Parallel tests 2019-08-29 10:48:55 +02:00
36-Combination-Password.t tidy 2022-02-16 17:43:29 +01:00
36-Combination-with-Choice.t Update combination tests 2020-04-23 15:36:48 +02:00
36-Combination-with-TOTP.t Fix warning messages 2020-02-16 14:48:55 +01:00
36-Combination-with-over.t Update combination tests 2020-04-23 15:36:48 +02:00
36-Combination-with-token.t Update combination tests 2020-04-23 15:36:48 +02:00
36-Combination.t tidy 2022-02-16 17:43:29 +01:00
37-CAS-App-to-SAML-IdP-POST-with-WAYF.t Tidy 2020-02-20 23:37:05 +01:00
37-CAS-App-to-SAML-IdP-POST.t Tidy 2020-02-20 23:37:05 +01:00
37-Issuer-Timeout.t tidy 2022-02-16 17:43:29 +01:00
37-Logout-from-2-chained-SAML-SP-SOAP.t Remove broken samlIDPMetaDataOptionsAllowProxiedAuthn option 2022-09-29 10:24:29 +02:00
37-Logout-from-OIDC-RP-to-SAML-IDP-Redirect.t Remove broken samlIDPMetaDataOptionsAllowProxiedAuthn option 2022-09-29 10:24:29 +02:00
37-Logout-from-OIDC-RP-to-SAML-IDP-SOAP.t Remove broken samlIDPMetaDataOptionsAllowProxiedAuthn option 2022-09-29 10:24:29 +02:00
37-Logout-from-OIDC-RP-to-SAML-SP.t Remove useless vars from OIDC tests 2021-02-01 18:20:32 +01:00
37-OIDC-RP-to-SAML-IdP-GET-with-WAYF.t tidy 2022-02-16 17:43:29 +01:00
37-OIDC-RP-to-SAML-IdP-GET.t tidy 2022-02-16 17:43:29 +01:00
37-OIDC-RP-to-SAML-IdP-POST.t tidy 2022-02-16 17:43:29 +01:00
37-SAML-SP-GET-to-OIDC-OP.t tidy 2022-02-16 17:43:29 +01:00
37-SAML-SP-GET-to-SAML-with-Logout.t Add unit test for SAML proxy (#2262) 2020-09-08 14:16:49 +02:00
37-SAML-SP-POST-to-CAS-server-with-Choice.t Tidy 2020-02-20 23:37:05 +01:00
37-SAML-SP-POST-to-CAS-server.t Tidy 2020-02-20 23:37:05 +01:00
37-SAML-SP-POST-to-OIDC-OP.t tidy 2022-02-16 17:43:29 +01:00
38-No-persistent-session.t make tidy with perltidy-20181120 2019-07-02 20:03:40 +02:00
40-Notifications-Explorer-JSON-File.t Typo (#2302) 2020-08-28 21:56:54 +02:00
40-Notifications-Explorer-XML-File.t Typo (#2302) 2020-08-28 21:56:54 +02:00
40-Notifications-JSON-DBI.t Typo (#2302) 2020-08-28 21:56:54 +02:00
40-Notifications-JSON-File-with-token.t Typo (#2302) 2020-08-28 21:56:54 +02:00
40-Notifications-JSON-File.t Append unit test (#2775) 2022-07-19 20:02:22 +02:00
40-Notifications-JSON-LDAP.t tidy 2022-02-16 17:43:29 +01:00
40-Notifications-JSON-Server.t tidy 2022-02-16 17:43:29 +01:00
40-Notifications-XML-DBI.t Typo (#2302) 2020-08-28 21:56:54 +02:00
40-Notifications-XML-File.t Typo (#2302) 2020-08-28 21:56:54 +02:00
40-Notifications-XML-Server.t Remove underscores in notifications reference (#2135) 2020-04-03 22:00:20 +02:00
41-Captcha-old-api.t Add unit test for old Captcha API (#2692) 2022-06-17 15:38:05 +02:00
41-Captcha.t Fix unit tests for new Captcha API (#2692) 2022-06-17 15:38:05 +02:00
41-Token-with-global-storage.t Update sessionInfo during auth process 2020-01-03 23:39:57 +01:00
41-Token.t tidy 2022-02-16 17:43:29 +01:00
42-Register-Custom.t tidy 2022-02-16 17:43:29 +01:00
42-Register-Demo-with-CustomBody.t tidy 2022-02-16 17:43:29 +01:00
42-Register-Demo-with-captcha.t Append autocomplete attribute & fix unit tests (#2585) 2021-08-05 22:45:31 +02:00
42-Register-Demo-with-token.t tidy 2022-02-16 17:43:29 +01:00
42-Register-Demo.t tidy 2022-02-16 17:43:29 +01:00
42-Register-LDAP.t tidy 2022-02-16 17:43:29 +01:00
42-Register-Security.t Fix Perl dependencies (see RT#129960) 2019-07-02 08:56:12 +02:00
43-MailPasswordReset-Choice.t Tidy 2020-02-20 23:37:05 +01:00
43-MailPasswordReset-Combination-LDAP.t Unit test for Mail password reset + Combination + LDAP (#1903) 2019-09-09 16:23:50 +02:00
43-MailPasswordReset-Combination.t Fix warning 2021-02-16 18:49:37 +01:00
43-MailPasswordReset-DBI.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
43-MailPasswordReset-Hook.t Unit tests for (#2510) 2021-06-02 11:08:07 +02:00
43-MailPasswordReset-LDAP.t tidy with new conf 2019-02-07 09:27:56 +01:00
43-MailPasswordReset-with-captcha.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
43-MailPasswordReset-with-token.t Tydy 2019-05-11 20:18:43 +02:00
43-MailPasswordReset.t Improve unit tests (#2733) 2022-05-13 23:27:52 +02:00
44-CertificateResetByMail-Demo.t tidy 2022-02-16 17:43:29 +01:00
44-CertificateResetByMail-LDAP.t tidy 2022-02-16 17:43:29 +01:00
50-IssuerGet.t Please use our .perltidyrc 2019-03-07 18:22:58 +01:00
56-CheckDevOps-with-Download.t Fix unit tests (#2679) 2021-12-22 00:30:48 +01:00
56-CheckDevOps.t tidy 2022-02-16 17:43:29 +01:00
57-GlobalLogout-with-Double-cookies-Single-session.t Improve unit tests (#2275) 2020-08-16 12:11:31 +02:00
57-GlobalLogout-with-Double-cookies.t Tidy 2020-05-24 00:04:33 +02:00
57-GlobalLogout-without-Timer.t Append unit tests (#1999) 2019-11-15 18:59:11 +01:00
57-GlobalLogout.t Update & improve unit test (#2689) 2022-01-26 22:54:45 +01:00
57-LogoutForward.t Tidy 2020-05-24 00:04:33 +02:00
57-LogoutForward2153.t tidy 2022-02-16 17:43:29 +01:00
58-DecryptValue-with-custom-function.t Pass encryption key to custom functions + Update doc 2022-06-18 18:53:57 +02:00
58-DecryptValue-with-internal-function.t Append unit test with token & Fix error code (#1976) 2020-12-26 14:30:38 +01:00
59-Double-cookies-Refresh-and-Logout.t tidy 2022-02-16 17:43:29 +01:00
59-Double-cookies-for-Double-sessions.t Improve unit tests (#1775) 2019-05-27 22:42:02 +02:00
59-Double-cookies-for-a-Single-session.t Improve cryptographic functions (#1823) 2019-06-28 10:30:37 +02:00
59-Secured-cookie-Refresh-and-Logout.t tidy 2022-02-16 17:43:29 +01:00
60-Status.t tidy with new conf 2019-02-07 09:27:56 +01:00
61-AdaptativeAuthenticationLevel.t tidy 2022-02-16 17:43:29 +01:00
61-BruteForceProtection-with-Incremental-lockTimes-and-TOTP.t Update unit tests (#2243) 2020-12-17 22:55:12 +01:00
61-BruteForceProtection-with-Incremental-lockTimes.t Fix conf test & unit test (#2243) 2020-12-19 19:46:36 +01:00
61-BruteForceProtection.t tidy 2022-02-16 17:43:29 +01:00
61-CrowdSec-warn.t Append accessor to avoid modify conf (#2451) 2021-02-19 07:44:00 +01:00
61-CrowdSec.t Append accessor to avoid modify conf (#2451) 2021-02-19 07:44:00 +01:00
61-ForceAuthn.t Use Time::Fake to avoid sleeping during tests 2019-11-04 18:11:32 +01:00
61-GrantSession.t Tidy 2020-05-24 00:04:33 +02:00
61-NewLocationWarning-Custom.t Update unit tests for new location plugin (#2325) 2021-09-06 17:40:04 +02:00
61-NewLocationWarning.t Update unit tests for new location plugin (#2325) 2021-09-06 17:40:04 +02:00
61-Session-ActivityTimeout.t tidy 2022-02-16 17:43:29 +01:00
61-Session-Timeout.t tidy 2022-02-16 17:43:29 +01:00
62-Refresh-plugin.t tidy 2022-02-16 17:43:29 +01:00
62-SingleSession-with-History.t Append unit test (#2180) 2020-04-29 21:15:55 +02:00
62-SingleSession-with-Rules.t Unit test for #2164 2020-04-22 11:02:59 +02:00
62-SingleSession.t Improve unit tests (#2275) 2020-08-16 12:11:31 +02:00
62-UpgradeSession-disabled.t tidy 2022-02-16 17:43:29 +01:00
62-UpgradeSession.t Enable upgradeSession only if required & Append unit test (#2480) 2021-03-02 19:20:15 +01:00
63-History.t tidy 2022-02-16 17:43:29 +01:00
64-StayConnected-with-2F-and-History.t tidy 2022-02-16 17:43:29 +01:00
64-StayConnected-with-History.t tidy 2022-02-16 17:43:29 +01:00
64-StayConnected-with-rule.t Improve code & append unit test (#2683) 2022-01-15 00:03:22 +01:00
64-StayConnected-without-fingerprint-checking.t tidy 2022-02-16 17:43:29 +01:00
65-AutoSignin.t Skip bad rule & improve unit test (#2102) 2020-02-22 22:03:00 +01:00
65-CheckState.t Unit test for #2661 2021-11-23 12:02:17 +01:00
66-CDA-PSGI-Try.t tidy 2022-02-16 17:43:29 +01:00
66-CDA-already-auth.t tidy 2022-02-16 17:43:29 +01:00
66-CDA-wildcard.t Fix #2802 2022-10-03 18:47:09 +02:00
66-CDA-with-REST.t tidy 2022-02-16 17:43:29 +01:00
66-CDA-with-SOAP.t tidy 2022-02-16 17:43:29 +01:00
66-CDA-with-doubleCookies.t tidy 2022-02-16 17:43:29 +01:00
66-CDA.t tidy 2022-02-16 17:43:29 +01:00
67-CheckUser-with-Global-token.t Update unit tests 2022-05-16 00:09:27 +02:00
67-CheckUser-with-Impersonation-and-Macros.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
67-CheckUser-with-UnrestrictedUser.t tidy 2022-02-16 17:43:29 +01:00
67-CheckUser-with-hidden-attributes.t Append unit test & update manifest (#2662) 2021-11-24 14:00:58 +01:00
67-CheckUser-with-history.t Syntax & tidy 2021-10-30 00:23:28 +02:00
67-CheckUser-with-issuer-SAML-POST.t Tidy 2020-02-20 23:37:05 +01:00
67-CheckUser-with-rules.t Improve unit test (#2658) 2021-11-22 21:17:23 +01:00
67-CheckUser-with-token.t Update unit tests 2022-05-16 00:09:27 +02:00
67-CheckUser.t Update unit tests 2022-05-16 00:09:27 +02:00
68-ContextSwitching-with-2F-allowed.t tidy 2022-02-16 17:43:29 +01:00
68-ContextSwitching-with-2F.t Syntax & tidy 2021-10-30 00:23:28 +02:00
68-ContextSwitching-with-Impersonation.t tidy 2022-02-16 17:43:29 +01:00
68-ContextSwitching-with-Logout.t tidy 2022-02-16 17:43:29 +01:00
68-ContextSwitching-with-TOTP-and-Notification.t Append unit test (#2338) 2020-10-12 14:55:46 +02:00
68-ContextSwitching-with-UnrestrictedUser.t Syntax & tidy 2021-10-30 00:23:28 +02:00
68-ContextSwitching.t tidy 2022-02-16 17:43:29 +01:00
68-FindUser-with-BadChoice-and-token.t tidy 2022-02-16 17:43:29 +01:00
68-FindUser-with-Choice-and-token.t tidy 2022-02-16 17:43:29 +01:00
68-FindUser-with-Combination.t tidy 2022-02-16 17:43:29 +01:00
68-FindUser-with-DBI.t Fix unit test (#2577) 2022-02-01 22:18:32 +01:00
68-FindUser-with-Demo-and-captcha.t Fix unit tests (#2589) 2021-08-12 22:58:47 +02:00
68-FindUser-with-Demo-and-required-params.t tidy 2022-02-16 17:43:29 +01:00
68-FindUser-with-Demo-and-token.t tidy 2022-02-16 17:43:29 +01:00
68-FindUser-with-Demo.t tidy 2022-02-16 17:43:29 +01:00
68-FindUser-with-LDAP.t Fix unit tests (#2577) 2022-02-06 13:18:40 +01:00
68-FindUser-with-REST.t tidy 2022-02-16 17:43:29 +01:00
68-FindUser-with-UpgradeSession.t Fix unit test (#2577) 2022-02-01 22:18:32 +01:00
68-FindUser-without-Impersonation.t tidy 2022-02-16 17:43:29 +01:00
68-FindUser-without-attribute.t tidy 2022-02-16 17:43:29 +01:00
68-Impersonation-with-2F.t Improve messages (#2332) 2020-10-16 23:27:06 +02:00
68-Impersonation-with-Custom-Plugin.t tidy 2022-02-16 17:43:29 +01:00
68-Impersonation-with-History.t Append unit tests (#2207) 2020-05-23 23:02:37 +02:00
68-Impersonation-with-TOTP.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
68-Impersonation-with-UnrestrictedUser.t tidy 2022-02-16 17:43:29 +01:00
68-Impersonation-with-doubleCookies.t tidy 2022-02-16 17:43:29 +01:00
68-Impersonation-with-filtered-merge.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
68-Impersonation-with-merge.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
68-Impersonation.t tidy 2022-02-16 17:43:29 +01:00
70-2F-TOTP-8-with-global-storage.t Fix unit tests for #2791 2022-09-02 15:03:08 +02:00
70-2F-TOTP-and-U2F-with-TTL-and-JSON.t Display removed SF name (#1782) 2021-06-26 22:38:42 +02:00
70-2F-TOTP-encryption.t Fix unit tests for #2791 2022-09-02 15:03:08 +02:00
70-2F-TOTP-with-History-and-Refresh.t Tidy 2020-05-24 00:04:33 +02:00
70-2F-TOTP-with-LDAP.t Unit test for #2796 2022-09-15 14:25:40 +02:00
70-2F-TOTP-with-Range.t Fix random CI failures 2021-01-20 16:52:20 +01:00
70-2F-TOTP-with-TTL-and-JSON.t tidy 2022-02-16 17:43:29 +01:00
70-2F-TOTP-with-TTL-and-XML.t Display removed SF name (#1782) 2021-06-26 22:38:42 +02:00
70-2F-TOTP-with-TTL.t Do not check selfRegistration (#2712) 2022-08-28 23:15:04 +02:00
71-2F-U2F-with-History.t Append unit test (#1632) 2019-02-16 22:00:25 +01:00
71-2F-U2F-with-TTL-and-msg.t tidy 2022-02-16 17:43:29 +01:00
71-2F-U2F-with-TTL.t Use Time::Fake to avoid sleeping during tests 2019-11-04 18:11:32 +01:00
71-2F-U2F.t Better fix and improve unit test (#2337) 2020-10-04 11:35:26 +02:00
72-2F-REST-CodeActivation-Resend.t Unit tests for #2762 2022-06-27 11:06:07 +02:00
72-2F-REST-with-History.t fix param transmission in rest2f (#2123) 2020-03-26 10:58:27 +01:00
73-2F-UTOTP-TOTP-and-U2F-with-History.t Do not check selfRegistration (#2712) 2022-08-28 23:15:04 +02:00
73-2F-UTOTP-TOTP-and-U2F.t unit test for has2f (#2391) 2020-11-18 10:10:51 +01:00
73-2F-UTOTP-TOTP-only-with-History.t Append unit test (#1632) 2019-02-16 22:00:25 +01:00
73-2F-UTOTP-TOTP-only.t tidy with new conf 2019-02-07 09:27:56 +01:00
74-2F-Required-Issuer-Timeouts.t Unit test for #2757 2022-06-03 15:35:21 +02:00
74-2F-Required.t Improve unit tests (#2275) 2020-08-16 12:11:31 +02:00
75-2F-Registers.t unit test for #2690 2022-07-07 12:05:54 +02:00
76-2F-Ext-with-BruteForce.t Set on-time-code autocomplete (#2585) 2021-08-20 17:20:58 +02:00
76-2F-Ext-with-CodeActivation-Resend.t Unit tests for #2762 2022-06-27 11:06:07 +02:00
76-2F-Ext-with-CodeActivation.t Set on-time-code autocomplete (#2585) 2021-08-20 17:20:58 +02:00
76-2F-Ext-with-GrantSession.t Set on-time-code autocomplete (#2585) 2021-08-20 17:20:58 +02:00
76-2F-Ext-with-History.t Set on-time-code autocomplete (#2585) 2021-08-20 17:20:58 +02:00
77-2F-Extra.t Use Perltidy 20220217 (Closes: #2765) 2022-06-23 12:12:25 +02:00
77-2F-Mail-SessionKey.t tidy 2022-02-16 17:43:29 +01:00
77-2F-Mail-with-global-storage.t Set on-time-code autocomplete (#2585) 2021-08-20 17:20:58 +02:00
77-2F-Mail.t Unit tests for #2762 2022-06-27 11:06:07 +02:00
78-2F-Upgrade-Many.t Set on-time-code autocomplete (#2585) 2021-08-20 17:20:58 +02:00
78-2F-Upgrade.t Set on-time-code autocomplete (#2585) 2021-08-20 17:20:58 +02:00
78-2F-UpgradeOnly-with-forceFlag.t Append unit test (#2714) 2022-03-06 14:17:13 +01:00
78-2F-UpgradeOnly-without-2F.t Fix unit test (#2712) 2022-08-28 23:23:32 +02:00
78-2F-UpgradeOnly.t Append unit test (#2714) 2022-03-06 14:17:13 +01:00
79-2F-Yubikey-from-Session.t Some little things 2020-05-31 09:23:40 +02:00
79-2F-Yubikey.t Fix warnings 2020-11-17 23:23:17 +01:00
90-Translations.t Add missing Finnish flag 2019-05-24 15:18:49 +02:00
91-Handler-cache-cleaned.t Merge branch 'v2.0' into 2589 2021-08-20 20:06:22 +02:00
91-Memory-Leak.t Tidy 2020-05-24 00:04:33 +02:00
99-Bad-logLevel.t tidy 2022-02-16 17:43:29 +01:00
99-Dont-load-Dumper.t tidy 2022-02-16 17:43:29 +01:00
99-pod.t Reorganize files - work in progress (#444) 2012-02-28 22:52:36 +00:00
AfterDataCustomPlugin.pm tidy 2022-02-16 17:43:29 +01:00
CaptchaOldApi.pm Add unit test for old Captcha API (#2692) 2022-06-17 15:38:05 +02:00
CasHookPlugin.pm Unit tests for #2649 2021-10-28 17:09:25 +02:00
Custom.pm Append unit test (#2657) 2021-11-16 23:04:59 +01:00
HistoryPlugin.pm unit test for hidden history fields (#2609) 2022-01-05 17:14:02 +01:00
OidcHookPlugin.pm Include extra keys in oidcGenerateUserInfoResponse (#2725) 2022-07-18 17:59:18 +02:00
PasswordHookPlugin.pm Unit tests for #2649 2021-10-28 17:09:25 +02:00
README.md Remove trailing whitespaces 2019-04-03 14:15:16 +02:00
SamlHookPlugin.pm Unit test for samlBuildAuthnResponse 2022-09-02 15:51:27 +02:00
lmConf-1.json Fix unit test for #2534 2021-06-24 19:02:34 +02:00
oidc-lib.pm Correctly report the calling location in test functions 2022-07-12 16:14:56 +02:00
pdata.pm make tidy 2018-07-05 23:00:40 +02:00
saml-lib.pm Correctly report the calling location in test functions 2022-07-12 16:14:56 +02:00
sendCode.pl Unit tests for #2762 2022-06-27 11:06:07 +02:00
sendOTP.pl make tidy 2018-10-12 10:04:03 +02:00
separate-handler.pm Tydy 2019-05-11 20:18:43 +02:00
smtp.pm Store MIME message in smtp lib 2022-10-07 10:09:12 +02:00
test-ldap.pm tidy 2022-02-16 17:43:29 +01:00
test-lib.pm add Xpath lookup method in test lib 2022-10-10 16:56:33 +02:00
test-psgi.pm tidy 2022-02-16 17:43:29 +01:00
test-yubikey.pm Add yubikey unit test 2020-05-25 18:57:07 +02:00
vrfyOTP.pl make tidy 2018-10-12 10:04:03 +02:00

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