From fc9de124c1f6d43fea40e80d7ecb4d71925eae0d Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Mon, 6 Apr 2020 19:52:41 +0200 Subject: [PATCH] Improve unit test (TOTP enable globalCache) --- .../t/68-ContextSwitching-with-TOTP-and-Notification.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/t/68-ContextSwitching-with-TOTP-and-Notification.t b/lemonldap-ng-portal/t/68-ContextSwitching-with-TOTP-and-Notification.t index dae421e40..ae3b88108 100644 --- a/lemonldap-ng-portal/t/68-ContextSwitching-with-TOTP-and-Notification.t +++ b/lemonldap-ng-portal/t/68-ContextSwitching-with-TOTP-and-Notification.t @@ -23,7 +23,7 @@ close F; my $client = LLNG::Manager::Test->new( { ini => { - logLevel => 'error', + logLevel => 'debug', authentication => 'Demo', userDB => 'Same', loginHistoryEnabled => 0, @@ -36,6 +36,7 @@ my $client = LLNG::Manager::Test->new( { contextSwitchingStopWithLogout => 0, checkUser => 1, notification => 1, + tokenUseGlobalStorage => 1, notificationStorage => 'File', notificationStorageOptions => { dirName => $main::tmpDir }, } @@ -411,7 +412,8 @@ ok( ( $host, $url, $query ) = expectForm( $res, undef, '/checkuser', 'user', 'url' ); -ok( $res->[2]->[0] =~ m%%, 'Found trspan="checkUserComputeSession"' ) +ok( $res->[2]->[0] =~ m%%, + 'Found trspan="checkUserComputeSession"' ) or explain( $res->[2]->[0], 'trspan="checkUserComputeSession"' ); ok( $res->[2]->[0] =~ m%authMode%, 'Found macro authMode' ) or explain( $res->[2]->[0], 'Macro Key authMode' );