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
49f63913
Commit
49f63913
authored
Dec 01, 2018
by
Christophe Maudoux
🐛
Browse files
tidy (
#1561
)
parent
61e880f9
Pipeline
#3600
passed with stages
in 7 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-manager/t/12-save-changed-conf.t
View file @
49f63913
...
...
@@ -26,14 +26,15 @@ ok( $resBody = from_json( $res->[2]->[0] ),
"
Result body contains JSON text
"
);
ok
(
$resBody
->
{
result
}
==
1
,
"
JSON response contains
\"
result:1
\"
"
)
or
print
STDERR
Dumper
(
$resBody
);
ok
(
@
{
$resBody
->
{
details
}
->
{'
__warnings__
'}
}
==
2
,
'
JSON response contains 2 warnings
'
)
or
print
STDERR
Dumper
(
$resBody
);
ok
(
$resBody
->
{
details
}
->
{'
__warnings__
'}
->
[
0
]
->
{
message
}
ok
(
$resBody
->
{
details
}
->
{
__warnings__
}
and
@
{
$resBody
->
{
details
}
->
{
__warnings__
}
}
==
2
,
'
JSON response contains 2 warnings
'
)
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
}
ok
(
$resBody
->
{
details
}
->
{
__warnings__
}
->
[
1
]
->
{
message
}
=~
/\b(unprotected|cross-domain-authentication)\b/
,
"
Warning with 'unprotect' or 'CDA' found
"
)
or
print
STDERR
Dumper
(
$resBody
);
...
...
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