Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[3759] cherokee/trunk/qa: Adds a new QA to test http://bugs. cherokee-project.com/504

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Oct 30, 2009, 9:14 AM

Post #1 of 1 (95 views)
Permalink
[3759] cherokee/trunk/qa: Adds a new QA to test http://bugs. cherokee-project.com/504

Revision: 3759
http://svn.cherokee-project.com/changeset/3759
Author: alo
Date: 2009-10-30 17:14:44 +0100 (Fri, 30 Oct 2009)

Log Message:
-----------
Adds a new QA to test http://bugs.cherokee-project.com/504

Modified Paths:
--------------
cherokee/trunk/qa/Makefile.am

Added Paths:
-----------
cherokee/trunk/qa/231-POST-4extra.py

Added: cherokee/trunk/qa/231-POST-4extra.py
===================================================================
--- cherokee/trunk/qa/231-POST-4extra.py (rev 0)
+++ cherokee/trunk/qa/231-POST-4extra.py 2009-10-30 16:14:44 UTC (rev 3759)
@@ -0,0 +1,26 @@
+import random
+import string
+from base import *
+from util import *
+
+POST_LENGTH = 1024 * 10
+POST_EXTRA = "\r\n\r\n"
+FILENAME = "post_4extra.php"
+
+class Test (TestBase):
+ def __init__ (self):
+ TestBase.__init__ (self, __file__)
+ self.name = "Broken post with 4 extra characters"
+
+ self.request = "POST /%s HTTP/1.1\r\n" %(FILENAME) +\
+ "Host: localhost\r\n" +\
+ "Content-length: %d\r\n" % (POST_LENGTH)
+ self.expected_error = 200
+ self.post = letters_random (POST_LENGTH) + POST_EXTRA
+
+ def Prepare (self, www):
+ self.WriteFile (www, FILENAME, 0444, "<?php echo $_POST['var']; ?>")
+
+ def Precondition (self):
+ return os.path.exists (look_for_php())
+

Modified: cherokee/trunk/qa/Makefile.am
===================================================================
--- cherokee/trunk/qa/Makefile.am 2009-10-29 23:20:30 UTC (rev 3758)
+++ cherokee/trunk/qa/Makefile.am 2009-10-30 16:14:44 UTC (rev 3759)
@@ -235,7 +235,8 @@
227-Redir-Paths.py \
228-Redir-Paths2.py \
229-Fullpath.py \
-230-Fullpath2.py
+230-Fullpath2.py \
+231-POST-4extra.py

test:
./run-tests.py

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.