Commit 9176237f authored by Christophe Maudoux's avatar Christophe Maudoux 🐛
Browse files

Improve unit test (#2605)

parent 7accf352
Pipeline #15993 passed with stage
in 9 minutes and 57 seconds
......@@ -9,8 +9,12 @@ BEGIN {
my ( $client, $res, $id );
$client = LLNG::Manager::Test->new( {
ini =>
{ logLevel => 'error', restSessionServer => 1, useSafeJail => 1 },
ini => {
logLevel => 'error',
restSessionServer => 1,
useSafeJail => 1,
sameSite => 'Strict'
},
}
);
......@@ -52,7 +56,10 @@ ok(
count(1);
expectOK($res);
$id = expectCookie($res);
my $rawCookie = getHeader( $res, 'Set-Cookie' );
ok( $rawCookie =~ /;\s*SameSite=Strict/, 'Found SameSite=Strict (conf)' )
or explain( $rawCookie, 'SameSite value must be "Strict"' );
count(1);
ok( $res = $client->_get("/sessions/global/$id"), 'Get session' );
count(1);
expectOK($res);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment