Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3686533
clienttests.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
836 B
Referenced Files
None
Subscribers
None
clienttests.py
View Options
import
string
from
clientenv
import
ClientTestEnvironment
class
ClientConfigTests
(
ClientTestEnvironment
):
mode
=
'client'
def
test_site_buffer_overflow
(
self
):
# https://bugzilla.novell.com/show_bug.cgi?id=750256
longfile
=
(
string
.
ascii_lowercase
*
3
)[:
63
]
expected_error
=
"'
%s
' exceeds maximum site name length"
%
longfile
args
=
[
'grant'
,
'-s'
,
longfile
,
'-t'
,
'ticket'
]
self
.
_test_buffer_overflow
(
expected_error
,
args
=
args
)
def
test_ticket_buffer_overflow
(
self
):
# https://bugzilla.novell.com/show_bug.cgi?id=750256
longfile
=
(
string
.
ascii_lowercase
*
3
)[:
63
]
expected_error
=
"'
%s
' exceeds maximum ticket name length"
%
longfile
args
=
[
'grant'
,
'-s'
,
'site'
,
'-t'
,
longfile
]
self
.
_test_buffer_overflow
(
expected_error
,
args
=
args
)
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Mon, Apr 21, 11:32 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1664824
Default Alt Text
clienttests.py (836 B)
Attached To
Mode
rB Booth
Attached
Detach File
Event Timeline
Log In to Comment