Fix unit tests for #2431

Moo
Maxime Besson 5 years ago
parent 1a92304bcd
commit 834c09995c
  1. 2
      lemonldap-ng-manager/t/lemonldap-ng.ini
  2. 13
      lemonldap-ng-portal/t/30-Auth-and-issuer-SAML-Redirect.t

@ -23,7 +23,7 @@ useRedirectOnError = 0
[manager]
skippedUnitTests = cookieExpiration
skippedGlobalTests = cookieTTL oidcRPNeedRSAKey
skippedGlobalTests = cookieTTL oidcRPNeedRSAKey samlSignatureUnsupportedAlg
protection = manager
staticPrefix = app/

@ -28,19 +28,12 @@ LWP::Protocol::PSGI->register(
);
SKIP: {
eval "use Lasso";
if ($@) {
skip 'Lasso not found', $maintests;
}
# This test tries algs that do not work on old Lasso libs
unless (
Lasso::check_version(
2, 5, 1, Lasso::Constants::CHECK_VERSION_NUMERIC
)
eval
'use Lasso; (Lasso::check_version( 2, 5, 1, Lasso::Constants::CHECK_VERSION_NUMERIC) )? 1 : 0'
)
{
skip 'Lasso is too old', $maintests;
skip 'Lasso not found or too old', $maintests;
}
# Initialization

Loading…
Cancel
Save