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
Téo GODDET
lemonldap-ng
Commits
c1951ce3
Commit
c1951ce3
authored
Feb 16, 2021
by
Christophe Maudoux
🐛
Browse files
Fix warning
parent
67d8dccf
Changes
2
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-portal/t/56-CheckDevOps-with-Download.t
View file @
c1951ce3
...
...
@@ -112,7 +112,7 @@ ok( $res->[2]->[0] =~ m%\^/testyes: <span trspan="allowed">%, 'testyes' )
or
explain
(
$res
->
[
2
]
->
[
0
],
'
testyes
'
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%\^/deny: <span trspan="forbidden">%
,
'
deny
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
deny
'
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%\$uid eq qq
{
dwho
}
"%
,
'
file
'
)
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%\$uid eq qq
#
dwho
#
"%
,
'
file
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
file
'
);
ok
(
$res
->
[
2
]
->
[
0
]
!~
m%Mail: dwho\@badwolf.org<br/>%
,
'
Hearder Mail not found
'
)
...
...
@@ -143,7 +143,7 @@ ok( $res->{FILE} =~ /headers/, 'headers found' )
or
print
STDERR
Dumper
(
$res
);
ok
(
$res
->
{
FILE
}
=~
/rules/
,
'
rules found
'
)
or
print
STDERR
Dumper
(
$res
);
ok
(
$res
->
{
FILE
}
=~
/"\$uid ne qq
{
dwho
}
"/
,
'
rule found
'
)
ok
(
$res
->
{
FILE
}
=~
/"\$uid ne qq
#
dwho
#
"/
,
'
rule found
'
)
or
print
STDERR
Dumper
(
$res
);
ok
(
$res
->
{
URL
}
eq
'
http://test3.example.com/rules.json
',
'
URL found
'
)
or
print
STDERR
Dumper
(
$res
);
...
...
lemonldap-ng-portal/t/56-CheckDevOps.t
View file @
c1951ce3
...
...
@@ -24,7 +24,7 @@ my $file = '{
}
';
my
$bad_file
=
'
{
"rules": {
"^/testno": "$uid ne qq
{
dwho
}
"
"^/testno": "$uid ne qq
#
dwho
#
"
"default": "accept"
},
"headers": {
...
...
@@ -165,7 +165,7 @@ ok( $res->[2]->[0] =~ m%\^/testyes: <span trspan="allowed">%, 'testyes' )
or
explain
(
$res
->
[
2
]
->
[
0
],
'
testyes
'
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%\^/deny: <span trspan="forbidden">%
,
'
deny
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
deny
'
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%\$uid eq qq
{
dwho
}
"%
,
'
file
'
)
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%\$uid eq qq
#
dwho
#
"%
,
'
file
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
file
'
);
count
(
13
);
(
$host
,
$url
,
$query
)
=
...
...
@@ -191,7 +191,7 @@ ok( $res->{FILE} =~ /headers/, 'headers found' )
or
print
STDERR
Dumper
(
$res
);
ok
(
$res
->
{
FILE
}
=~
/rules/
,
'
rules found
'
)
or
print
STDERR
Dumper
(
$res
);
ok
(
$res
->
{
FILE
}
=~
/"\$uid ne qq
{
dwho
}
"/
,
'
rule found
'
)
ok
(
$res
->
{
FILE
}
=~
/"\$uid ne qq
#
dwho
#
"/
,
'
rule found
'
)
or
print
STDERR
Dumper
(
$res
);
count
(
6
);
...
...
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