Changeset 1962
- Timestamp:
- 09/07/08 18:37:32 (4 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/qa/007-Missing-Host.py (modified) (1 diff)
- cherokee/trunk/qa/020-VirtualHost.py (modified) (1 diff)
- cherokee/trunk/qa/021-VirtualHost2.py (modified) (1 diff)
- cherokee/trunk/qa/022-NoHost.py (modified) (1 diff)
- cherokee/trunk/qa/023-Host.py (modified) (1 diff)
- cherokee/trunk/qa/024-Host+Port.py (modified) (1 diff)
- cherokee/trunk/qa/026-Host-Broken-Dot.py (modified) (1 diff)
- cherokee/trunk/qa/031-Post+urlencoded2.py (modified) (1 diff)
- cherokee/trunk/qa/042-Pipelining.py (modified) (1 diff)
- cherokee/trunk/qa/043-Pipelining2.py (modified) (1 diff)
- cherokee/trunk/qa/044-Home.py (modified) (1 diff)
- cherokee/trunk/qa/048-NN.py (modified) (1 diff)
- cherokee/trunk/qa/049-NN-broken.py (modified) (1 diff)
- cherokee/trunk/qa/094-URL-request.py (modified) (1 diff)
- cherokee/trunk/qa/105-If-Range.py (modified) (1 diff)
- cherokee/trunk/qa/106-If-Range2.py (modified) (1 diff)
- cherokee/trunk/qa/116-RequestTiny.py (modified) (1 diff)
- cherokee/trunk/qa/117-DomainToDir.py (modified) (1 diff)
- cherokee/trunk/qa/121-NoUserDir.py (modified) (1 diff)
- cherokee/trunk/qa/122-Methods.py (modified) (7 diffs)
- cherokee/trunk/qa/124-DomainToDir2.py (modified) (1 diff)
- cherokee/trunk/qa/125-domain-redir1.py (modified) (1 diff)
- cherokee/trunk/qa/135-RedirParams.py (modified) (1 diff)
- cherokee/trunk/qa/139-domain-wildcards1.py (modified) (1 diff)
- cherokee/trunk/qa/153-SCGI-vars-root.py (modified) (1 diff)
- cherokee/trunk/qa/160-RuleNot1.py (modified) (1 diff)
- cherokee/trunk/qa/161-RuleNot2.py (modified) (1 diff)
- cherokee/trunk/qa/166-xsendfile1.py (modified) (1 diff)
- cherokee/trunk/qa/171-SCGI-Keepalive.py (modified) (1 diff)
- cherokee/trunk/qa/172-Chunked-CGI.py (modified) (1 diff)
- cherokee/trunk/qa/173-Chunked-SCGI.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1961 r1962 1 1 2008-09-07 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * qa/007-Missing-Host.py , qa/020-VirtualHost.py , 4 qa/021-VirtualHost2.py , qa/022-NoHost.py , qa/023-Host.py , 5 qa/024-Host+Port.py , qa/026-Host-Broken-Dot.py , 6 qa/031-Post+urlencoded2.py , qa/042-Pipelining.py , 7 qa/043-Pipelining2.py , qa/044-Home.py , qa/048-NN.py , 8 qa/049-NN-broken.py , qa/094-URL-request.py , qa/105-If-Range.py , 9 qa/106-If-Range2.py , qa/116-RequestTiny.py , 10 qa/117-DomainToDir.py , qa/121-NoUserDir.py , qa/122-Methods.py , 11 qa/124-DomainToDir2.py , qa/125-domain-redir1.py , 12 qa/135-RedirParams.py , qa/139-domain-wildcards1.py, 13 qa/153-SCGI-vars-root.py, qa/160-RuleNot1.py, qa/161-RuleNot2.py, 14 qa/166-xsendfile1.py, qa/171-SCGI-Keepalive.py, 15 qa/172-Chunked-CGI.py, qa/173-Chunked-SCGI.py: QA tests using 16 HTTP/1.1 must send the "Connection: Close" header. 2 17 3 18 * qa/172-Chunked-CGI.py: This QA was failing because of an cherokee/trunk/qa/007-Missing-Host.py
r53 r1962 8 8 self.expected_error = 400 9 9 self.request = "GET / HTTP/1.1\r\n" +\ 10 "Connection: Keep-alive\r\n"10 "Connection: Close\r\n" 11 11 cherokee/trunk/qa/020-VirtualHost.py
r1715 r1962 16 16 self.name = "Virtual Host" 17 17 self.request = "GET /file HTTP/1.1\r\n" +\ 18 "Connection: Close\r\n" + \ 18 19 "Host: cherokee.test\r\n" 19 20 self.expected_error = 200 cherokee/trunk/qa/021-VirtualHost2.py
r1715 r1962 17 17 self.name = "Virtual Host II" 18 18 self.request = "GET /file HTTP/1.1\r\n" +\ 19 "Connection: Close\r\n" + \ 19 20 "Host: second.domain\r\n" 20 21 cherokee/trunk/qa/022-NoHost.py
r53 r1962 8 8 self.expected_error = 400 9 9 self.request = "GET / HTTP/1.1\r\n" +\ 10 "Connection: Keep-alive\r\n"10 "Connection: Close\r\n" 11 11 cherokee/trunk/qa/023-Host.py
r438 r1962 8 8 self.expected_error = 200 9 9 self.request = "GET / HTTP/1.1\r\n" +\ 10 "Connection: Close\r\n" + \ 10 11 "Host: www.cherokee-project.com\r\n" 11 12 cherokee/trunk/qa/024-Host+Port.py
r438 r1962 8 8 self.expected_error = 200 9 9 self.request = "GET / HTTP/1.1\r\n" +\ 10 "Connection: Close\r\n" + \ 10 11 "Host: www.cherokee-project.com:80\r\n" 11 12 cherokee/trunk/qa/026-Host-Broken-Dot.py
r53 r1962 8 8 self.expected_error = 400 9 9 self.request = "GET / HTTP/1.1\r\n" +\ 10 "Connection: Close\r\n" + \ 10 11 "Host: .hostname.domain\r\n" cherokee/trunk/qa/031-Post+urlencoded2.py
r1738 r1962 17 17 "Host: localhost\r\n" +\ 18 18 "Content-type: application/x-www-form-urlencoded\r\n" +\ 19 "Connection: Close\r\n" + \ 19 20 "Content-length: 8\r\n" 20 21 self.post = "12345678" cherokee/trunk/qa/042-Pipelining.py
r269 r1962 10 10 self.request = "GET /pipe1/file1 HTTP/1.1\r\n" +\ 11 11 "Host: localhost\r\n" +\ 12 "Connection: Keep-alive\r\n" +\12 "Connection: Keep-alive\r\n" +\ 13 13 "\r\n" +\ 14 14 "GET /pipe1/file2 HTTP/1.1\r\n" +\ 15 15 "Host: localhost\r\n" +\ 16 "Connection: Keep-alive\r\n" +\16 "Connection: Keep-alive\r\n" +\ 17 17 "\r\n" +\ 18 18 "GET /pipe1/file3 HTTP/1.1\r\n" +\ cherokee/trunk/qa/043-Pipelining2.py
r269 r1962 15 15 "GET /pipe2/ HTTP/1.1\r\n" +\ 16 16 "Host: localhost\r\n" +\ 17 "Connection: Keep-alive\r\n"17 "Connection: Close\r\n" 18 18 19 19 self.expected_error = 200 cherokee/trunk/qa/044-Home.py
r1715 r1962 18 18 19 19 self.request = "GET /~missing/file HTTP/1.1\r\n" + \ 20 "Connection: Close\r\n" + \ 20 21 "Host: missing.host1\r\n" 21 22 self.conf = CONF cherokee/trunk/qa/048-NN.py
r1766 r1962 19 19 20 20 self.request = "GET /Xesano HTTP/1.1\r\n" + \ 21 "Connection: Close\r\n" + \ 21 22 "Host: %s\r\n" %(HOST) 22 23 self.expected_error = 302 cherokee/trunk/qa/049-NN-broken.py
r1766 r1962 17 17 18 18 self.request = "GET /missing HTTP/1.1\r\n" + \ 19 "Connection: Close\r\n" + \ 19 20 "Host: %s\r\n" % (HOST) 20 21 self.expected_error = 404 cherokee/trunk/qa/094-URL-request.py
r1715 r1962 19 19 TestBase.__init__ (self) 20 20 self.name = "URL request I" 21 self.request = "GET http://request1host/urlrequest1/dir/file HTTP/1.1\r\n" 21 self.request = "GET http://request1host/urlrequest1/dir/file HTTP/1.1\r\n" + \ 22 "Connection: Close\r\n" 22 23 self.expected_error = 200 23 24 self.expected_content = MAGIC cherokee/trunk/qa/105-If-Range.py
r1738 r1962 61 61 self.request = "GET /if_range1/file HTTP/1.1\r\n" + \ 62 62 "Host: localhost\r\n" + \ 63 "If-Range: %s\r\n" % (times) + \ 63 "Connection: Close\r\n" + \ 64 "If-Range: %s\r\n" % (times) + \ 64 65 "Range: bytes=%d-\r\n" % (len(DOCUMENTATION)) cherokee/trunk/qa/106-If-Range2.py
r1738 r1962 39 39 self.request = "GET /if_range2/file HTTP/1.1\r\n" + \ 40 40 "Host: localhost\r\n" + \ 41 "If-Range: %s\r\n" % (times) + \ 41 "Connection: Close\r\n" + \ 42 "If-Range: %s\r\n" % (times) + \ 42 43 "Range: bytes=%d-\r\n" % (len(DOCUMENTATION)) cherokee/trunk/qa/116-RequestTiny.py
r1715 r1962 24 24 self.name = "Request tiny" 25 25 26 self.request = "GET / HTTP/1.1\r\n" +\ 27 "Host: %s\r\n" %(HOST) 26 self.request = "GET / HTTP/1.1\r\n" + \ 27 "Host: %s\r\n" %(HOST) + \ 28 "Connection: Close\r\n" 28 29 self.expected_error = 200 29 30 self.expected_content = MAGIC cherokee/trunk/qa/117-DomainToDir.py
r1715 r1962 21 21 self.name = "Domain to subdir" 22 22 23 self.request = "GET /%s HTTP/1.1\r\n" %(PATH) +\ 24 "Host: %s\r\n" %(HOST) 23 self.request = "GET /%s HTTP/1.1\r\n" %(PATH) + \ 24 "Host: %s\r\n" %(HOST) + \ 25 "Connection: Close\r\n" 25 26 self.expected_error = 301 26 27 self.expected_content = URL+PATH cherokee/trunk/qa/121-NoUserDir.py
r1715 r1962 22 22 23 23 self.request = "GET /~%s/%s HTTP/1.1\r\n" % (USERNAME, FILENAME) +\ 24 "Host: %s\r\n" % (SERVER) 24 "Host: %s\r\n" % (SERVER) +\ 25 "Connection: Close\r\n" 25 26 26 27 self.expected_error = 200 cherokee/trunk/qa/122-Methods.py
r1738 r1962 24 24 obj = self.Add (TestEntry()) 25 25 obj.request = "DELETE /methods_group/folder1 HTTP/1.1\r\n" +\ 26 "Connection: Close\r\n" + \ 26 27 "Host: www.example.com\r\n" 27 28 … … 29 30 obj.request = "COPY /methods_group/index.html HTTP/1.1\r\n" +\ 30 31 "Host: www.example.com\r\n" +\ 32 "Connection: Close\r\n" + \ 31 33 "Destination: http://www.example.com/folder/index.html\r\n" +\ 32 34 "Overwrite: T\r\n" … … 35 37 obj.request = "MOVE /methods_group/folder1/ HTTP/1.1\r\n" +\ 36 38 "Destination: http://www.example.com/pub2/folder2/\r\n" +\ 37 "Host: www.example.com\r\n" 39 "Host: www.example.com\r\n" +\ 40 "Connection: Close\r\n" 38 41 39 42 obj = self.Add (TestEntry()) 40 43 obj.request = "POLL /methods_group/subtest/ HTTP/1.1\r\n" +\ 41 44 "Host: www.example.com\r\n" +\ 45 "Connection: Close\r\n" + \ 42 46 "Subscription-ID: 8,9,10,11,12\r\n" +\ 43 47 "Content-Length: 0\r\n" … … 46 50 obj.request = "SUBSCRIBE /methods_group/subtest HTTP/1.1\r\n" +\ 47 51 "Host: www.example.com\r\n" +\ 52 "Connection: Close\r\n" + \ 48 53 "Notification-type: Update\r\n" +\ 49 54 "Call-Back: httpu://www.example.com:8080/510\r\n" … … 52 57 obj.request = "UNSUBSCRIBE /methods_group/subtest HTTP/1.1\r\n" +\ 53 58 "Host: www.example.com\r\n" +\ 59 "Connection: Close\r\n" + \ 54 60 "Subscription-id: 16\r\n" 55 61 … … 57 63 obj.request = "LOCK /methods_group/docs/myfile.doc HTTP/1.1\r\n" +\ 58 64 "Host: www.example.com\r\n" +\ 65 "Connection: Close\r\n" + \ 59 66 "Timeout: Infinite, Second-4100000000\r\n" +\ 60 67 "If: (<opaquelocktoken:e71df4fae-5dec-22d6-fea5-00a0c91e6be4>)\r\n" … … 63 70 obj.request = "UNLOCK /methods_group/myfile.doc HTTP/1.1\r\n" +\ 64 71 "Host: www.contoso.com\r\n" +\ 72 "Connection: Close\r\n" + \ 65 73 "Lock-Token: <opaquelocktoken:e71d4fae-5dec-22df-fea5-00a0c93bd5eb1>\r\n" 66 74 cherokee/trunk/qa/124-DomainToDir2.py
r1715 r1962 27 27 28 28 self.request = "GET %s/%s HTTP/1.1\r\n" %(DIR, PATH) +\ 29 "Host: %s\r\n" %(DOMAIN) 29 "Host: %s\r\n" %(DOMAIN) +\ 30 "Connection: Close\r\n" 31 30 32 self.expected_error = 301 31 33 self.expected_content = URL+PATH cherokee/trunk/qa/125-domain-redir1.py
r1715 r1962 28 28 29 29 self.request = "GET %s HTTP/1.1\r\n" %(PATH) +\ 30 "Host: %s\r\n" %(DOMAIN) 30 "Host: %s\r\n" %(DOMAIN) +\ 31 "Connection: Close\r\n" 32 31 33 self.expected_error = 301 32 34 self.expected_content = "http://www.%s%s" % (DOMAIN, PATH) cherokee/trunk/qa/135-RedirParams.py
r1715 r1962 30 30 self.name = "Hidden redir with params" 31 31 self.request = "GET /%s?%s HTTP/1.1\r\n" % (REQUEST, PARAMS) + \ 32 "Host: %s\r\n" % (SERVER) 32 "Host: %s\r\n" % (SERVER) + \ 33 "Connection: Close\r\n" 33 34 self.expected_error = 301 34 35 self.expected_content = "Location: /index.php?q=%s&%s" % (REQUEST, PARAMS) cherokee/trunk/qa/139-domain-wildcards1.py
r1715 r1962 26 26 27 27 self.request = "GET /%s HTTP/1.1\r\n" % (FILENAME) +\ 28 "Host: whatever.%s\r\n" % (DOMAIN) 28 "Host: whatever.%s\r\n" % (DOMAIN) +\ 29 "Connection: Close\r\n" 29 30 30 31 self.expected_error = 200 cherokee/trunk/qa/153-SCGI-vars-root.py
r1949 r1962 51 51 52 52 self.request = "GET %s HTTP/1.1\r\n" %(REQUEST) +\ 53 "Host: scgi6\r\n" 53 "Host: scgi6\r\n" +\ 54 "Connection: Close\r\n" 55 54 56 self.expected_error = 200 55 57 self.expected_content = EXPECTED cherokee/trunk/qa/160-RuleNot1.py
r1715 r1962 31 31 32 32 self.request = "GET /%s/test HTTP/1.1\r\n" % (DIR) + \ 33 "Host: %s\r\n" % (VSERVER) 33 "Host: %s\r\n" % (VSERVER) + \ 34 "Connection: Close\r\n" 35 34 36 self.expected_error = 200 35 37 self.expected_content = MAGIC cherokee/trunk/qa/161-RuleNot2.py
r1715 r1962 31 31 32 32 self.request = "GET /%s/test HTTP/1.1\r\n" % (DIR) + \ 33 "Host: %s\r\n" % (VSERVER) 33 "Host: %s\r\n" % (VSERVER) + \ 34 "Connection: Close\r\n" 35 34 36 self.expected_error = 200 35 37 self.expected_content = MAGIC cherokee/trunk/qa/166-xsendfile1.py
r1738 r1962 27 27 28 28 self.request = "GET /%s/%s HTTP/1.1\r\n" % (DIR, FILE) + \ 29 "Host: default\r\n" 29 "Host: default\r\n" + \ 30 "Connection: Close\r\n" 31 30 32 self.expected_error = 200 31 33 self.expected_content = MAGIC cherokee/trunk/qa/171-SCGI-Keepalive.py
r1960 r1962 40 40 self.name = "SCGI Keepalive" 41 41 42 self.request = "GET %s/ HTTP/1.1\r\n" %(DIR) + \ 43 "Host: localhost\r\n" + \ 44 "Connection: Keep-Alive\r\n\r\n" + \ 45 "OPTIONS %s/ HTTP/1.0\r\n" % (DIR) 42 self.request = "GET %s/ HTTP/1.1\r\n" %(DIR) + \ 43 "Host: localhost\r\n" + \ 44 "Connection: Keep-Alive\r\n\r\n" + \ 45 "OPTIONS %s/ HTTP/1.0\r\n" % (DIR) +\ 46 "Connection: Close\r\n" 47 46 48 self.expected_error = 200 47 49 self.expected_content = [MAGIC, "Connection: Keep-Alive"] cherokee/trunk/qa/172-Chunked-CGI.py
r1961 r1962 27 27 28 28 self.request = "GET /%s/test HTTP/1.1\r\n" % (DIR) + \ 29 "Host: localhost\r\n" 29 "Host: localhost\r\n" + \ 30 "Connection: Close\r\n" 31 30 32 self.expected_error = 200 31 33 self.expected_content = ["Transfer-Encoding: chunked", cherokee/trunk/qa/173-Chunked-SCGI.py
r1960 r1962 42 42 43 43 self.request = "GET /%s/test HTTP/1.1\r\n" % (DIR) + \ 44 "Host: localhost\r\n" 44 "Host: localhost\r\n" + \ 45 "Connection: Close\r\n" 46 45 47 self.expected_error = 200 46 48 self.expected_content = ["Transfer-Encoding: chunked",