Fix unit tests

environments/ppa-mbqj77/deployments/783
Christophe Maudoux 6 years ago
parent d0da10b375
commit 240617d8d8
  1. 2
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build/Attributes.pm
  2. 2
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/ContextSwitching.pm
  3. 23
      lemonldap-ng-portal/t/59-Double-cookies-Refresh-and-Logout.t
  4. 1
      lemonldap-ng-portal/t/68-Impersonation-with-doubleCookies.t
  5. 1
      lemonldap-ng-portal/t/68-Impersonation.t

@ -435,7 +435,7 @@ sub attributes {
},
checkUserHiddenAttributes => {
type => 'text',
default => '_loginHistory hGroups _session_id',
default => '_loginHistory _session_id hGroups',
documentation => 'Attributes to hide in CheckUser plugin',
flags => 'p',
},

@ -74,7 +74,7 @@ sub display {
my $realSession;
unless ( $realSession = $self->p->getApacheSession($realSessionId) ) {
$self->userLogger->info(
"ContextSwitching: real session expired");
"ContextSwitching: session $realSessionId expired");
return $self->p->do( $req, [ sub { PE_SESSIONEXPIRED } ] );
}

@ -9,17 +9,18 @@ BEGIN {
my $res;
my $client = LLNG::Manager::Test->new( {
ini => {
logLevel => 'error',
authentication => 'Demo',
userDB => 'Same',
loginHistoryEnabled => 0,
brutForceProtection => 0,
portalMainLogo => 'common/logos/logo_llng_old.png',
requireToken => 0,
securedCookie => 2,
https => 0,
checkUser => 1,
handlerInternalCache => 0,
logLevel => 'error',
authentication => 'Demo',
userDB => 'Same',
loginHistoryEnabled => 0,
brutForceProtection => 0,
portalMainLogo => 'common/logos/logo_llng_old.png',
requireToken => 0,
securedCookie => 2,
https => 0,
checkUser => 1,
handlerInternalCache => 0,
checkUserHiddenAttributes => '_loginHistory hGroups',
}
}
);

@ -26,6 +26,7 @@ my $client = LLNG::Manager::Test->new( {
checkUserDisplayPersistentInfo => 0,
checkUserDisplayEmptyValues => 0,
impersonationMergeSSOgroups => 0,
checkUserHiddenAttributes => '_loginHistory hGroups',
macros => {
test_impersonation => '"$testPrefix__user/$_user"',
_whatToTrace =>

@ -26,6 +26,7 @@ my $client = LLNG::Manager::Test->new( {
checkUserDisplayPersistentInfo => 0,
checkUserDisplayEmptyValues => 0,
impersonationMergeSSOgroups => 0,
checkUserHiddenAttributes => '_loginHistory hGroups',
macros => {
test_impersonation => '"$testPrefix__user/$_user"',
_whatToTrace =>

Loading…
Cancel
Save