Import v2.0 tests

This commit is contained in:
Xavier Guimard 2019-06-25 17:20:27 +02:00
parent 1b4600b15c
commit 1c0ffb3e83
1 changed files with 2 additions and 14 deletions

View File

@ -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() );