Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
8c36bab6
Commit
8c36bab6
authored
Dec 30, 2018
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
0731bd5f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
lemonldap-ng-manager/MANIFEST
lemonldap-ng-manager/MANIFEST
+1
-1
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
+1
-1
lemonldap-ng-manager/t/11-save-changed-conf-with-confirmation.t
...dap-ng-manager/t/11-save-changed-conf-with-confirmation.t
+2
-2
lemonldap-ng-manager/t/jsonfiles/11-modified-with-confirmation.json
...ng-manager/t/jsonfiles/11-modified-with-confirmation.json
+0
-0
No files found.
lemonldap-ng-manager/MANIFEST
View file @
8c36bab6
...
...
@@ -207,8 +207,8 @@ t/99-pod.t
t/conf/lmConf-1.json
t/jsonfiles/01-base-tree.json
t/jsonfiles/02-base-tree-all-nodes-opened.json
t/jsonfiles/11-modified-with-confirmation.json
t/jsonfiles/12-modified.json
t/jsonfiles/13-modified-with-confirmation.json
t/jsonfiles/14-bad.json
t/jsonfiles/15-combination.json
t/lemonldap-ng.ini
...
...
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
View file @
8c36bab6
...
...
@@ -610,7 +610,7 @@ sub tests {
checkMailResetSecurity
=>
sub
{
return
1
unless
(
$conf
->
{
portalDisplayResetPassword
}
);
return
(
-
1
,
'
"passwordMailReset" plugin is enabled without CSRF Token
o
r Captcha required !!!
'
'
"passwordMailReset" plugin is enabled without CSRF Token
neithe
r Captcha required !!!
'
)
unless
(
$conf
->
{
requireToken
}
or
$conf
->
{
captcha_mail_enabled
}
);
...
...
lemonldap-ng-manager/t/11-save-changed-conf-with-confirmation.t
View file @
8c36bab6
...
...
@@ -6,7 +6,7 @@ use strict;
use
JSON
;
require
'
t/test-lib.pm
';
my
$struct
=
'
t/jsonfiles/1
3
-modified-with-confirmation.json
';
my
$struct
=
'
t/jsonfiles/1
1
-modified-with-confirmation.json
';
my
$confFiles
=
[
'
t/conf/lmConf-1.json
',
'
t/conf/lmConf-2.json
'
];
sub
body
{
...
...
@@ -47,7 +47,7 @@ ok( @{ $resBody->{details}->{__needConfirmation__} } == 1,
)
or
print
STDERR
Dumper
(
$resBody
);
ok
(
$resBody
->
{
details
}
->
{
__needConfirmation__
}
->
[
0
]
->
{
message
}
=~
/\bplugin is enabled without CSRF Token
o
r Captcha required\b/
,
=~
/\bplugin is enabled without CSRF Token
neithe
r Captcha required\b/
,
"
Warning with confirmation needed found
"
)
or
print
STDERR
Dumper
(
$resBody
);
...
...
lemonldap-ng-manager/t/jsonfiles/1
3
-modified-with-confirmation.json
→
lemonldap-ng-manager/t/jsonfiles/1
1
-modified-with-confirmation.json
View file @
8c36bab6
File moved
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