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
7b3e95a3
Commit
7b3e95a3
authored
Dec 29, 2018
by
Christophe Maudoux
🐛
Browse files
Improve units test (
#1603
)
parent
b674769a
Pipeline
#3822
failed with stages
in 9 minutes and 9 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 @
7b3e95a3
...
...
@@ -51,10 +51,11 @@ ok( $resBody->{details}->{__needConfirmation__}->[0]->{message}
"
Warning with confirmation needed found
"
)
or
print
STDERR
Dumper
(
$resBody
);
ok
(
@
{
$resBody
->
{
details
}
->
{
__changes__
}
}
==
24
,
'
JSON response contains 24 changes
'
)
or
print
STDERR
Dumper
(
$resBody
);
#print STDERR Dumper($resBody);
ok
(
$res
=
&client
->
_post
(
'
/confs/
',
'
cfgNum=1&force=1
',
&body
,
'
application/json
'
),
"
Request succeed
"
);
...
...
lemonldap-ng-manager/t/12-save-changed-conf.t
View file @
7b3e95a3
...
...
@@ -37,8 +37,13 @@ foreach my $i (0 .. 1) {
)
or
print
STDERR
Dumper
(
$resBody
);
}
ok
(
@
{
$resBody
->
{
details
}
->
{
__changes__
}
}
==
22
,
'
JSON response contains 24 changes
'
)
or
print
STDERR
Dumper
(
$resBody
);
#print STDERR Dumper($resBody);
ok
(
-
f
$confFiles
->
[
1
],
'
File is created
'
);
count
(
3
);
count
(
4
);
my
@changes
=
@
{
&changes
};
my
@cmsg
=
@
{
$resBody
->
{
details
}
->
{
__changes__
}
};
my
$bug
;
...
...
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