Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
208
Issues
208
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
7b3e95a3
Commit
7b3e95a3
authored
Dec 29, 2018
by
Christophe Maudoux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lemonldap-ng-manager/t/11-save-changed-conf-with-confirmation.t
...dap-ng-manager/t/11-save-changed-conf-with-confirmation.t
+2
-1
lemonldap-ng-manager/t/12-save-changed-conf.t
lemonldap-ng-manager/t/12-save-changed-conf.t
+6
-1
No files found.
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
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