Fix unit tests
This commit is contained in:
parent
d0da10b375
commit
240617d8d8
|
@ -435,7 +435,7 @@ sub attributes {
|
||||||
},
|
},
|
||||||
checkUserHiddenAttributes => {
|
checkUserHiddenAttributes => {
|
||||||
type => 'text',
|
type => 'text',
|
||||||
default => '_loginHistory hGroups _session_id',
|
default => '_loginHistory _session_id hGroups',
|
||||||
documentation => 'Attributes to hide in CheckUser plugin',
|
documentation => 'Attributes to hide in CheckUser plugin',
|
||||||
flags => 'p',
|
flags => 'p',
|
||||||
},
|
},
|
||||||
|
|
|
@ -74,7 +74,7 @@ sub display {
|
||||||
my $realSession;
|
my $realSession;
|
||||||
unless ( $realSession = $self->p->getApacheSession($realSessionId) ) {
|
unless ( $realSession = $self->p->getApacheSession($realSessionId) ) {
|
||||||
$self->userLogger->info(
|
$self->userLogger->info(
|
||||||
"ContextSwitching: real session expired");
|
"ContextSwitching: session $realSessionId expired");
|
||||||
return $self->p->do( $req, [ sub { PE_SESSIONEXPIRED } ] );
|
return $self->p->do( $req, [ sub { PE_SESSIONEXPIRED } ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,17 +9,18 @@ BEGIN {
|
||||||
my $res;
|
my $res;
|
||||||
my $client = LLNG::Manager::Test->new( {
|
my $client = LLNG::Manager::Test->new( {
|
||||||
ini => {
|
ini => {
|
||||||
logLevel => 'error',
|
logLevel => 'error',
|
||||||
authentication => 'Demo',
|
authentication => 'Demo',
|
||||||
userDB => 'Same',
|
userDB => 'Same',
|
||||||
loginHistoryEnabled => 0,
|
loginHistoryEnabled => 0,
|
||||||
brutForceProtection => 0,
|
brutForceProtection => 0,
|
||||||
portalMainLogo => 'common/logos/logo_llng_old.png',
|
portalMainLogo => 'common/logos/logo_llng_old.png',
|
||||||
requireToken => 0,
|
requireToken => 0,
|
||||||
securedCookie => 2,
|
securedCookie => 2,
|
||||||
https => 0,
|
https => 0,
|
||||||
checkUser => 1,
|
checkUser => 1,
|
||||||
handlerInternalCache => 0,
|
handlerInternalCache => 0,
|
||||||
|
checkUserHiddenAttributes => '_loginHistory hGroups',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -26,6 +26,7 @@ my $client = LLNG::Manager::Test->new( {
|
||||||
checkUserDisplayPersistentInfo => 0,
|
checkUserDisplayPersistentInfo => 0,
|
||||||
checkUserDisplayEmptyValues => 0,
|
checkUserDisplayEmptyValues => 0,
|
||||||
impersonationMergeSSOgroups => 0,
|
impersonationMergeSSOgroups => 0,
|
||||||
|
checkUserHiddenAttributes => '_loginHistory hGroups',
|
||||||
macros => {
|
macros => {
|
||||||
test_impersonation => '"$testPrefix__user/$_user"',
|
test_impersonation => '"$testPrefix__user/$_user"',
|
||||||
_whatToTrace =>
|
_whatToTrace =>
|
||||||
|
|
|
@ -26,6 +26,7 @@ my $client = LLNG::Manager::Test->new( {
|
||||||
checkUserDisplayPersistentInfo => 0,
|
checkUserDisplayPersistentInfo => 0,
|
||||||
checkUserDisplayEmptyValues => 0,
|
checkUserDisplayEmptyValues => 0,
|
||||||
impersonationMergeSSOgroups => 0,
|
impersonationMergeSSOgroups => 0,
|
||||||
|
checkUserHiddenAttributes => '_loginHistory hGroups',
|
||||||
macros => {
|
macros => {
|
||||||
test_impersonation => '"$testPrefix__user/$_user"',
|
test_impersonation => '"$testPrefix__user/$_user"',
|
||||||
_whatToTrace =>
|
_whatToTrace =>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user