Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexandre KARIM
lemonldap-ng
Commits
9176237f
Commit
9176237f
authored
Sep 23, 2021
by
Christophe Maudoux
Browse files
Improve unit test (#2605)
parent
7accf352
Pipeline
#15993
passed with stage
in 9 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-portal/t/04-language-selection.t
View file @
9176237f
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment