Changeset 1962

Show
Ignore:
Timestamp:
09/07/08 18:37:32 (4 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1961 r1962  
    112008-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. 
    217 
    318        * qa/172-Chunked-CGI.py: This QA was failing because of an 
  • cherokee/trunk/qa/007-Missing-Host.py

    r53 r1962  
    88        self.expected_error = 400 
    99        self.request        = "GET / HTTP/1.1\r\n" +\ 
    10                               "Connection: Keep-alive\r\n" 
     10                              "Connection: Close\r\n" 
    1111 
  • cherokee/trunk/qa/020-VirtualHost.py

    r1715 r1962  
    1616        self.name = "Virtual Host" 
    1717        self.request          = "GET /file HTTP/1.1\r\n" +\ 
     18                                "Connection: Close\r\n" + \ 
    1819                                "Host: cherokee.test\r\n" 
    1920        self.expected_error   = 200 
  • cherokee/trunk/qa/021-VirtualHost2.py

    r1715 r1962  
    1717        self.name             = "Virtual Host II" 
    1818        self.request          = "GET /file HTTP/1.1\r\n" +\ 
     19                                "Connection: Close\r\n" + \ 
    1920                                "Host: second.domain\r\n" 
    2021 
  • cherokee/trunk/qa/022-NoHost.py

    r53 r1962  
    88        self.expected_error = 400 
    99        self.request        = "GET / HTTP/1.1\r\n" +\ 
    10                               "Connection: Keep-alive\r\n" 
     10                              "Connection: Close\r\n" 
    1111 
  • cherokee/trunk/qa/023-Host.py

    r438 r1962  
    88        self.expected_error = 200 
    99        self.request        = "GET / HTTP/1.1\r\n" +\ 
     10                              "Connection: Close\r\n" + \ 
    1011                              "Host: www.cherokee-project.com\r\n" 
    1112 
  • cherokee/trunk/qa/024-Host+Port.py

    r438 r1962  
    88        self.expected_error = 200 
    99        self.request        = "GET / HTTP/1.1\r\n" +\ 
     10                              "Connection: Close\r\n" + \ 
    1011                              "Host: www.cherokee-project.com:80\r\n" 
    1112 
  • cherokee/trunk/qa/026-Host-Broken-Dot.py

    r53 r1962  
    88        self.expected_error = 400 
    99        self.request        = "GET / HTTP/1.1\r\n" +\ 
     10                              "Connection: Close\r\n" + \ 
    1011                              "Host: .hostname.domain\r\n" 
  • cherokee/trunk/qa/031-Post+urlencoded2.py

    r1738 r1962  
    1717                              "Host: localhost\r\n" +\ 
    1818                              "Content-type: application/x-www-form-urlencoded\r\n" +\ 
     19                              "Connection: Close\r\n" + \ 
    1920                              "Content-length: 8\r\n" 
    2021        self.post           = "12345678" 
  • cherokee/trunk/qa/042-Pipelining.py

    r269 r1962  
    1010        self.request          = "GET /pipe1/file1 HTTP/1.1\r\n"   +\ 
    1111                                "Host: localhost\r\n"             +\ 
    12                                 "Connection: Keep-alive\r\n" +\ 
     12                                "Connection: Keep-alive\r\n"      +\ 
    1313                                "\r\n"                            +\ 
    1414                                "GET /pipe1/file2 HTTP/1.1\r\n"   +\ 
    1515                                "Host: localhost\r\n"             +\ 
    16                                 "Connection: Keep-alive\r\n" +\ 
     16                                "Connection: Keep-alive\r\n"      +\ 
    1717                                "\r\n"                            +\ 
    1818                                "GET /pipe1/file3 HTTP/1.1\r\n"   +\ 
  • cherokee/trunk/qa/043-Pipelining2.py

    r269 r1962  
    1515                                "GET /pipe2/ HTTP/1.1\r\n"        +\ 
    1616                                "Host: localhost\r\n"             +\ 
    17                                 "Connection: Keep-alive\r\n" 
     17                                "Connection: Close\r\n" 
    1818 
    1919        self.expected_error   = 200 
  • cherokee/trunk/qa/044-Home.py

    r1715 r1962  
    1818 
    1919        self.request          = "GET /~missing/file HTTP/1.1\r\n" + \ 
     20                                "Connection: Close\r\n" + \ 
    2021                                "Host: missing.host1\r\n" 
    2122        self.conf             = CONF 
  • cherokee/trunk/qa/048-NN.py

    r1766 r1962  
    1919 
    2020        self.request           = "GET /Xesano HTTP/1.1\r\n" + \ 
     21                                 "Connection: Close\r\n" + \ 
    2122                                 "Host: %s\r\n" %(HOST) 
    2223        self.expected_error    = 302 
  • cherokee/trunk/qa/049-NN-broken.py

    r1766 r1962  
    1717 
    1818        self.request        = "GET /missing HTTP/1.1\r\n" + \ 
     19                              "Connection: Close\r\n" + \ 
    1920                              "Host: %s\r\n" % (HOST) 
    2021        self.expected_error = 404 
  • cherokee/trunk/qa/094-URL-request.py

    r1715 r1962  
    1919        TestBase.__init__ (self) 
    2020        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" 
    2223        self.expected_error   = 200 
    2324        self.expected_content = MAGIC 
  • cherokee/trunk/qa/105-If-Range.py

    r1738 r1962  
    6161        self.request          = "GET /if_range1/file HTTP/1.1\r\n"  + \ 
    6262                                "Host: localhost\r\n"               + \ 
    63                                 "If-Range: %s\r\n" % (times)   + \ 
     63                                "Connection: Close\r\n"             + \ 
     64                                "If-Range: %s\r\n" % (times)        + \ 
    6465                                "Range: bytes=%d-\r\n" % (len(DOCUMENTATION))  
  • cherokee/trunk/qa/106-If-Range2.py

    r1738 r1962  
    3939        self.request          = "GET /if_range2/file HTTP/1.1\r\n"  + \ 
    4040                                "Host: localhost\r\n"               + \ 
    41                                 "If-Range: %s\r\n" % (times)   + \ 
     41                                "Connection: Close\r\n"             + \ 
     42                                "If-Range: %s\r\n" % (times)        + \ 
    4243                                "Range: bytes=%d-\r\n" % (len(DOCUMENTATION))  
  • cherokee/trunk/qa/116-RequestTiny.py

    r1715 r1962  
    2424        self.name = "Request tiny" 
    2525 
    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" 
    2829        self.expected_error    = 200 
    2930        self.expected_content  = MAGIC 
  • cherokee/trunk/qa/117-DomainToDir.py

    r1715 r1962  
    2121        self.name = "Domain to subdir" 
    2222 
    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" 
    2526        self.expected_error    = 301 
    2627        self.expected_content  = URL+PATH 
  • cherokee/trunk/qa/121-NoUserDir.py

    r1715 r1962  
    2222 
    2323        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" 
    2526 
    2627        self.expected_error    = 200 
  • cherokee/trunk/qa/122-Methods.py

    r1738 r1962  
    2424        obj = self.Add (TestEntry()) 
    2525        obj.request = "DELETE /methods_group/folder1 HTTP/1.1\r\n" +\ 
     26                      "Connection: Close\r\n" + \ 
    2627                      "Host: www.example.com\r\n"  
    2728 
     
    2930        obj.request = "COPY /methods_group/index.html HTTP/1.1\r\n" +\ 
    3031                      "Host: www.example.com\r\n" +\ 
     32                      "Connection: Close\r\n" + \ 
    3133                      "Destination:  http://www.example.com/folder/index.html\r\n" +\ 
    3234                      "Overwrite: T\r\n" 
     
    3537        obj.request = "MOVE /methods_group/folder1/ HTTP/1.1\r\n" +\ 
    3638                      "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" 
    3841 
    3942        obj = self.Add (TestEntry()) 
    4043        obj.request = "POLL /methods_group/subtest/ HTTP/1.1\r\n" +\ 
    4144                      "Host: www.example.com\r\n" +\ 
     45                      "Connection: Close\r\n" + \ 
    4246                      "Subscription-ID: 8,9,10,11,12\r\n" +\ 
    4347                      "Content-Length: 0\r\n" 
     
    4650        obj.request = "SUBSCRIBE /methods_group/subtest HTTP/1.1\r\n" +\ 
    4751                      "Host: www.example.com\r\n" +\ 
     52                      "Connection: Close\r\n" + \ 
    4853                      "Notification-type: Update\r\n" +\ 
    4954                      "Call-Back: httpu://www.example.com:8080/510\r\n" 
     
    5257        obj.request = "UNSUBSCRIBE /methods_group/subtest HTTP/1.1\r\n" +\ 
    5358                      "Host: www.example.com\r\n" +\ 
     59                      "Connection: Close\r\n" + \ 
    5460                      "Subscription-id: 16\r\n" 
    5561 
     
    5763        obj.request = "LOCK /methods_group/docs/myfile.doc HTTP/1.1\r\n" +\ 
    5864                      "Host: www.example.com\r\n" +\ 
     65                      "Connection: Close\r\n" + \ 
    5966                      "Timeout: Infinite, Second-4100000000\r\n" +\ 
    6067                      "If: (<opaquelocktoken:e71df4fae-5dec-22d6-fea5-00a0c91e6be4>)\r\n" 
     
    6370        obj.request = "UNLOCK /methods_group/myfile.doc HTTP/1.1\r\n" +\ 
    6471                      "Host: www.contoso.com\r\n" +\ 
     72                      "Connection: Close\r\n" + \ 
    6573                      "Lock-Token: <opaquelocktoken:e71d4fae-5dec-22df-fea5-00a0c93bd5eb1>\r\n" 
    6674 
  • cherokee/trunk/qa/124-DomainToDir2.py

    r1715 r1962  
    2727 
    2828        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 
    3032        self.expected_error    = 301 
    3133        self.expected_content  = URL+PATH 
  • cherokee/trunk/qa/125-domain-redir1.py

    r1715 r1962  
    2828 
    2929        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 
    3133        self.expected_error    = 301 
    3234        self.expected_content  = "http://www.%s%s" % (DOMAIN, PATH) 
  • cherokee/trunk/qa/135-RedirParams.py

    r1715 r1962  
    3030        self.name             = "Hidden redir with params" 
    3131        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" 
    3334        self.expected_error   = 301 
    3435        self.expected_content = "Location: /index.php?q=%s&%s" % (REQUEST, PARAMS) 
  • cherokee/trunk/qa/139-domain-wildcards1.py

    r1715 r1962  
    2626 
    2727        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" 
    2930 
    3031        self.expected_error    = 200 
  • cherokee/trunk/qa/153-SCGI-vars-root.py

    r1949 r1962  
    5151 
    5252        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 
    5456        self.expected_error    = 200 
    5557        self.expected_content  = EXPECTED 
  • cherokee/trunk/qa/160-RuleNot1.py

    r1715 r1962  
    3131 
    3232        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 
    3436        self.expected_error    = 200 
    3537        self.expected_content  = MAGIC 
  • cherokee/trunk/qa/161-RuleNot2.py

    r1715 r1962  
    3131 
    3232        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 
    3436        self.expected_error    = 200 
    3537        self.expected_content  = MAGIC 
  • cherokee/trunk/qa/166-xsendfile1.py

    r1738 r1962  
    2727 
    2828        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 
    3032        self.expected_error    = 200 
    3133        self.expected_content  = MAGIC 
  • cherokee/trunk/qa/171-SCGI-Keepalive.py

    r1960 r1962  
    4040        self.name = "SCGI Keepalive" 
    4141 
    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 
    4648        self.expected_error    = 200 
    4749        self.expected_content  = [MAGIC, "Connection: Keep-Alive"] 
  • cherokee/trunk/qa/172-Chunked-CGI.py

    r1961 r1962  
    2727 
    2828        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 
    3032        self.expected_error    = 200 
    3133        self.expected_content  = ["Transfer-Encoding: chunked",  
  • cherokee/trunk/qa/173-Chunked-SCGI.py

    r1960 r1962  
    4242 
    4343        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 
    4547        self.expected_error    = 200 
    4648        self.expected_content  = ["Transfer-Encoding: chunked",