Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
b674769a
Commit
b674769a
authored
Dec 29, 2018
by
Christophe Maudoux
🐛
Browse files
Fix & improve units test (#1603)
parent
1a3e8032
Pipeline
#3821
passed with stages
in 10 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-manager/t/11-save-changed-conf-with-confirmation.t
View file @
b674769a
...
...
@@ -41,7 +41,7 @@ foreach my $i (0 .. 2) {
"
Warning with 'unprotect', 'CDA' or 'retries' found
"
)
or
print
STDERR
Dumper
(
$resBody
);
}
count
(
4
);
ok
(
@
{
$resBody
->
{
details
}
->
{
__needConfirmation__
}
}
==
1
,
'
JSON response contains 1 needConfirmation
'
)
or
print
STDERR
Dumper
(
$resBody
);
...
...
@@ -60,7 +60,7 @@ ok( $res = &client->_post( '/confs/', 'cfgNum=1&force=1', &body, 'application/js
);
ok
(
-
f
$confFiles
->
[
1
],
'
File is created
'
);
count
(
3
);
count
(
5
);
my
@changes
=
@
{
&changes
};
my
@cmsg
=
@
{
$resBody
->
{
details
}
->
{
__changes__
}
};
my
$bug
;
...
...
lemonldap-ng-manager/t/12-save-changed-conf.t
View file @
b674769a
...
...
@@ -37,18 +37,6 @@ foreach my $i (0 .. 1) {
)
or
print
STDERR
Dumper
(
$resBody
);
}
# ok( $resBody->{details}->{__warnings__}->[0]->{message}
# =~ /\b(unprotected|cross-domain-authentication)\b/,
# "Warning with 'unprotect' or 'CDA' found"
# ) or print STDERR Dumper($resBody);
# ok( $resBody->{details}->{__warnings__}->[1]->{message}
# =~ /\b(unprotected|cross-domain-authentication)\b/,
# "Warning with 'unprotect' or 'CDA' found"
# ) or print STDERR Dumper($resBody);
ok
(
-
f
$confFiles
->
[
1
],
'
File is created
'
);
count
(
3
);
my
@changes
=
@
{
&changes
};
...
...
Write
Preview
Supports
Markdown
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