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
35385b80
Commit
35385b80
authored
Feb 16, 2021
by
Christophe Maudoux
🐛
Browse files
Fix warning
parent
edf7a881
Changes
3
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-portal/t/29-AuthGPG.t
View file @
35385b80
...
...
@@ -60,6 +60,7 @@ SKIP: {
expectOK
(
$res
);
expectCookie
(
$res
);
}
count
(
$mainTests
);
clean_sessions
();
done_testing
(
count
()
);
done_testing
();
lemonldap-ng-portal/t/56-CheckDevOps-with-Download.t
View file @
35385b80
...
...
@@ -114,7 +114,8 @@ 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
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
file
'
);
ok
(
$res
->
[
2
]
->
[
0
]
!~
m%Mail: dwho\@badwolf.org<br/>%
,
'
Hearder Mail not found
'
)
ok
(
$res
->
[
2
]
->
[
0
]
!~
m%Mail: dwho\@badwolf.org<br/>%
,
'
Hearder Mail not found
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
No hearder Mail
'
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%UA: <br/>%
,
'
Hearder UA found
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
Hearder UA
'
);
...
...
@@ -151,10 +152,8 @@ ok( $res->{MSG} eq 'checkDevOps', 'MSG found' )
count
(
8
);
$client
->
logout
(
$id
);
clean_sessions
();
done_testing
(
count
()
);
done_testing
();
# Redefine LWP methods for tests
no
warnings
'
redefine
';
...
...
@@ -180,4 +179,4 @@ sub LWP::UserAgent::request {
$httpResp
->
header
(
'
Content-Length
',
length
(
$s
)
);
$httpResp
->
content
(
$s
);
return
$httpResp
;
}
\ No newline at end of file
}
lemonldap-ng-portal/t/56-CheckDevOps.t
View file @
35385b80
...
...
@@ -148,7 +148,8 @@ ok( $res->[2]->[0] =~ m%Name: Doctor Who<br/>%, 'Hearder Name found' )
or
explain
(
$res
->
[
2
]
->
[
0
],
'
Hearder Name
'
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%User: dwho<br/>%
,
'
Hearder User found
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
Hearder User
'
);
ok
(
$res
->
[
2
]
->
[
0
]
!~
m%Mail: dwho\@badwolf.org<br/>%
,
'
Hearder Mail not found
'
)
ok
(
$res
->
[
2
]
->
[
0
]
!~
m%Mail: dwho\@badwolf.org<br/>%
,
'
Hearder Mail not found
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
No hearder Mail
'
);
ok
(
$res
->
[
2
]
->
[
0
]
!~
m%UA: <br/>%
,
'
Hearder UA not found
'
)
or
explain
(
$res
->
[
2
]
->
[
0
],
'
No hearder UA
'
);
...
...
@@ -274,7 +275,5 @@ ok( $res->{MSG} eq 'PE81', 'PE81 found' )
count
(
5
);
$client
->
logout
(
$id
);
clean_sessions
();
done_testing
(
count
()
);
done_testing
();
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