Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
258
Issues
258
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
7c1162dd
Commit
7c1162dd
authored
Nov 26, 2018
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve unit test
parent
545a6485
Pipeline
#3523
passed with stages
in 7 minutes and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
lemonldap-ng-portal/t/61-ForceAuthn.t
lemonldap-ng-portal/t/61-ForceAuthn.t
+1
-1
lemonldap-ng-portal/t/76-2F-Ext-with-HISTORY.t
lemonldap-ng-portal/t/76-2F-Ext-with-HISTORY.t
+7
-2
No files found.
lemonldap-ng-portal/t/61-ForceAuthn.t
View file @
7c1162dd
...
...
@@ -41,7 +41,7 @@ ok(
cookie
=>
"
lemonldap=
$id1
",
accept
=>
'
text/html
',
),
'
Form ReAuthenti
fi
cation
'
'
Form ReAuthentication
'
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
qr%<span trspan="PE87"></span>%
,
'
Found PE87 code
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
...
...
lemonldap-ng-portal/t/76-2F-Ext-with-HISTORY.t
View file @
7c1162dd
...
...
@@ -12,7 +12,12 @@ my $client = LLNG::Manager::Test->new(
{
ini
=>
{
logLevel
=>
'
error
',
u2fActivation
=>
'
1
',
rest2fActivation
=>
1
,
rest2fInitUrl
=>
'
http://auth.example.com/init
',
rest2fInitArgs
=>
{
name
=>
'
uid
'
},
rest2fVerifyUrl
=>
'
http://auth.example.com/vrfy
',
rest2fVerifyArgs
=>
{
code
=>
'
code
'
},
rest2fLogo
=>
'
u2f.png
',
totp2fActivation
=>
'
$uid eq "dwho"
',
ext2fActivation
=>
1
,
ext2FSendCommand
=>
'
t/sendOTP.pl -uid $uid
',
...
...
@@ -45,7 +50,7 @@ my ( $host, $url, $query ) =
ok
(
$res
->
[
2
]
->
[
0
]
=~
qq%<img src="/static/bootstrap/u2f.png" alt="
u2F" title="u
2F" />%
,
qq%<img src="/static/bootstrap/u2f.png" alt="
rest2F" title="rest
2F" />%
,
'
Found u2f.png
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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