diff --git a/lemonldap-ng-portal/t/34-Auth-Proxy-and-REST-Server.t b/lemonldap-ng-portal/t/34-Auth-Proxy-and-REST-Server.t index 92ae87447..6ab334d22 100644 --- a/lemonldap-ng-portal/t/34-Auth-Proxy-and-REST-Server.t +++ b/lemonldap-ng-portal/t/34-Auth-Proxy-and-REST-Server.t @@ -37,9 +37,8 @@ LWP::Protocol::PSGI->register( ' Post request' ); count(1); - ok( ( $res->[0] == 200 or $res->[0] == 401 ), ' Get 200 or 401' ); - count(1); - $idpId = expectCookie($res) if ( $res->[0] == 200 ); + expectOK($res); + $idpId = expectCookie($res) unless ( $req->param('all') ); } elsif ( $req->method =~ /^(get|delete)$/i ) { my $mth = '_' . lc($1); @@ -294,17 +293,6 @@ ok( count(1); expectReject($res); -# Try to auth with a bad password -ok( - $res = $sp->_post( - '/', IO::String->new('user=dwho&password=xxxx'), - length => 23, - ), - 'Post user/password' -); -count(1); -expectReject($res); - clean_sessions(); done_testing( count() );