Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
246
Issues
246
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
8e957020
Commit
8e957020
authored
Mar 24, 2016
by
Xavier Guimard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests since exec errors are now warnings
parent
e23f0a3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
lemonldap-ng-manager/t/14-bad-changes-in-conf.t
lemonldap-ng-manager/t/14-bad-changes-in-conf.t
+2
-1
lemonldap-ng-manager/t/jsonfiles/14-bad.json
lemonldap-ng-manager/t/jsonfiles/14-bad.json
+2
-2
No files found.
lemonldap-ng-manager/t/14-bad-changes-in-conf.t
View file @
8e957020
...
...
@@ -23,7 +23,8 @@ ok( $res->[0] == 200, "Result code is 200" );
ok
(
$resBody
=
from_json
(
$res
->
[
2
]
->
[
0
]
),
"
Result body contains JSON text
"
);
ok
(
$resBody
->
{
result
}
==
0
,
"
JSON response contains
\"
result:0
\"
"
)
or
print
STDERR
Dumper
(
$res
);
ok
(
@
{
$resBody
->
{
details
}
->
{
__errors__
}
}
==
1
,
'
1 error detected
'
);
ok
(
@
{
$resBody
->
{
details
}
->
{
__warnings__
}
}
==
1
,
'
1 error detected
'
)
or
print
STDERR
Dumper
(
$resBody
);
count
(
5
);
...
...
lemonldap-ng-manager/t/jsonfiles/14-bad.json
View file @
8e957020
...
...
@@ -5,7 +5,7 @@
"id"
:
"portalParams"
,
"title"
:
"portalParams"
,
"nodes"
:
[{
"default"
:
"
ht
tp://auth.example.com/"
,
"default"
:
"
f
tp://auth.example.com/"
,
"id"
:
"portal"
,
"title"
:
"portal"
,
"data"
:
"http://auth.example.com/"
...
...
@@ -1903,7 +1903,7 @@
"title"
:
"default"
,
"type"
:
"rule"
,
"id"
:
"virtualHosts/manager.example.com/locationRules/1"
,
"data"
:
"$uid
=~ /dwho/rtyler/
"
,
"data"
:
"$uid
eq
\"
dwho
\"
"
,
"re"
:
"default"
}]
},
{
...
...
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