Improve unit test (TOTP enable globalCache)
This commit is contained in:
parent
e68d5ed2c8
commit
fc9de124c1
@ -23,7 +23,7 @@ close F;
|
|||||||
|
|
||||||
my $client = LLNG::Manager::Test->new( {
|
my $client = LLNG::Manager::Test->new( {
|
||||||
ini => {
|
ini => {
|
||||||
logLevel => 'error',
|
logLevel => 'debug',
|
||||||
authentication => 'Demo',
|
authentication => 'Demo',
|
||||||
userDB => 'Same',
|
userDB => 'Same',
|
||||||
loginHistoryEnabled => 0,
|
loginHistoryEnabled => 0,
|
||||||
@ -36,6 +36,7 @@ my $client = LLNG::Manager::Test->new( {
|
|||||||
contextSwitchingStopWithLogout => 0,
|
contextSwitchingStopWithLogout => 0,
|
||||||
checkUser => 1,
|
checkUser => 1,
|
||||||
notification => 1,
|
notification => 1,
|
||||||
|
tokenUseGlobalStorage => 1,
|
||||||
notificationStorage => 'File',
|
notificationStorage => 'File',
|
||||||
notificationStorageOptions => { dirName => $main::tmpDir },
|
notificationStorageOptions => { dirName => $main::tmpDir },
|
||||||
}
|
}
|
||||||
@ -411,7 +412,8 @@ ok(
|
|||||||
|
|
||||||
( $host, $url, $query ) =
|
( $host, $url, $query ) =
|
||||||
expectForm( $res, undef, '/checkuser', 'user', 'url' );
|
expectForm( $res, undef, '/checkuser', 'user', 'url' );
|
||||||
ok( $res->[2]->[0] =~ m%<span trspan="checkUserComputeSession">%, 'Found trspan="checkUserComputeSession"' )
|
ok( $res->[2]->[0] =~ m%<span trspan="checkUserComputeSession">%,
|
||||||
|
'Found trspan="checkUserComputeSession"' )
|
||||||
or explain( $res->[2]->[0], 'trspan="checkUserComputeSession"' );
|
or explain( $res->[2]->[0], 'trspan="checkUserComputeSession"' );
|
||||||
ok( $res->[2]->[0] =~ m%<td scope="row">authMode</td>%, 'Found macro authMode' )
|
ok( $res->[2]->[0] =~ m%<td scope="row">authMode</td>%, 'Found macro authMode' )
|
||||||
or explain( $res->[2]->[0], 'Macro Key authMode' );
|
or explain( $res->[2]->[0], 'Macro Key authMode' );
|
||||||
|
Loading…
Reference in New Issue
Block a user