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
64e6c20f
Commit
64e6c20f
authored
Feb 09, 2019
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve unit test (
#1595
)
parent
b777007f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
lemonldap-ng-portal/t/02-Password-Demo.t
lemonldap-ng-portal/t/02-Password-Demo.t
+24
-1
No files found.
lemonldap-ng-portal/t/02-Password-Demo.t
View file @
64e6c20f
...
...
@@ -15,6 +15,8 @@ my $client = LLNG::Manager::Test->new( {
passwordDB
=>
'
Demo
',
portalRequireOldPassword
=>
1
,
showLanguages
=>
0
,
translations
=>
'
site/templates/localeTranslations.txt
',
error_de_85
=>
'
From lemonlap-ng.ini
',
}
}
);
...
...
@@ -23,7 +25,28 @@ ok( $res = $client->_get( '/', accept => 'text/html' ), 'Get Menu' );
ok
(
$res
->
[
2
]
->
[
0
]
!~
m%<span id="languages"></span>%
,
'
No language icon found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
count
(
2
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"trOver"%
,
'
trOver found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"all":\{\}%
,
'
all found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"en":\{"PE5":"Big brother is watching you, authenticated user"\}%
,
'
en found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"PE0":"Souriez, vous êtes surveillés !"%
,
'
PE0 found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"selectIdP":"Portail de Fédération des Identités"%
,
'
selectIdP found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"fr":\{%
,
'
fr found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"PE85":"From lemonlap-ng.ini"%
,
'
PE85 found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
count
(
9
);
# Try yo authenticate
# -------------------
...
...
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