use Test::More; use strict; use IO::String; BEGIN { require 't/test-lib.pm'; } my $res; my $client = LLNG::Manager::Test->new( { ini => { logLevel => 'error', authentication => 'Demo', userDB => 'Same', brutForceProtection => 0, portalMainLogo => 'common/logos/logo_llng_old.png', checkUser => 0, portalDisplayFavApps => 1, portalDisplayOidcConsents => 1, portalDisplayLoginHistory => 1, portalDisplayAppslist => 1, portalDisplayLogout => 1, } } ); ## Try to authenticate ok( $res = $client->_post( '/', IO::String->new('user=dwho&password=dwho'), length => 23, accept => 'text/html', ), 'Auth query' ); count(1); my $id = expectCookie($res); expectRedirection( $res, 'http://auth.example.com/' ); ok( $res = $client->_get( '/', cookie => "lemonldap=$id", accept => 'text/html' ), 'Get Menu' ); count(1); # Parse Menu my @menu = map m%