
cherokee at cherokee-project
Sep 16, 2011, 3:43 AM
Views: 106
Permalink
|
|
[6856] cherokee/trunk/qa: Adds a new QA test.
|
|
Revision: 6856 http://svn.cherokee-project.com/changeset/6856 Author: alo Date: 2011-09-16 12:43:55 +0200 (Fri, 16 Sep 2011) Log Message: ----------- Adds a new QA test. It checks whether the server can access local files with the question mark in the name. Bug #582 Modified Paths: -------------- cherokee/trunk/qa/Makefile.am Added Paths: ----------- cherokee/trunk/qa/290-Question-mark-in-name.py Added: cherokee/trunk/qa/290-Question-mark-in-name.py =================================================================== --- cherokee/trunk/qa/290-Question-mark-in-name.py (rev 0) +++ cherokee/trunk/qa/290-Question-mark-in-name.py 2011-09-16 10:43:55 UTC (rev 6856) @@ -0,0 +1,18 @@ +from base import * + +DIR = "test290" +FILE = "what?ever.txt" +MAGIC = "Files can contain question marks" + +class Test (TestBase): + def __init__ (self): + TestBase.__init__ (self, __file__) + self.name = "Question mark in name" + + self.request = "GET /%s/%s HTTP/1.0\r\n" %(DIR, FILE.replace('?','%3f')) + self.expected_error = 200 + self.expected_content = MAGIC + + def Prepare (self, www): + d = self.Mkdir (www, DIR) + self.WriteFile (d, FILE, 0444, MAGIC) Modified: cherokee/trunk/qa/Makefile.am =================================================================== --- cherokee/trunk/qa/Makefile.am 2011-09-15 17:14:08 UTC (rev 6855) +++ cherokee/trunk/qa/Makefile.am 2011-09-16 10:43:55 UTC (rev 6856) @@ -310,7 +310,8 @@ 286-CGI-Permissions.py \ 287-rule-inheritance.py \ 288-GZip-IE16.py \ -289-Connection_TE.py +289-Connection_TE.py \ +290-Question-mark-in-name.py test: python -m compileall .
|