Page MenuHomeClusterLabs Projects

clienttests.py
No OneTemporary

clienttests.py

#!/usr/bin/python
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.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.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

Mime Type
text/x-script.python
Expires
Sat, Jan 25, 6:07 AM (17 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1219265
Default Alt Text
clienttests.py (843 B)

Event Timeline