httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1772099 - /httpd/test/framework/trunk/t/apache/chunkinput.t
Date Wed, 30 Nov 2016 18:02:57 GMT
Author: wrowe
Date: Wed Nov 30 18:02:57 2016
New Revision: 1772099

URL: http://svn.apache.org/viewvc?rev=1772099&view=rev
Log:
Drop httpd 1.3 [archiac, no longer interesting]

In the table, note the corresponding test input.

Change the behavior of the "A :: :: ::" input to
reject as 400, since this is completely garbage
input and must be rejected (tests 19/21).


Modified:
    httpd/test/framework/trunk/t/apache/chunkinput.t

Modified: httpd/test/framework/trunk/t/apache/chunkinput.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/chunkinput.t?rev=1772099&r1=1772098&r2=1772099&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/chunkinput.t (original)
+++ httpd/test/framework/trunk/t/apache/chunkinput.t Wed Nov 30 18:02:57 2016
@@ -11,60 +11,33 @@ my @test_strings = ("0",
                     "A    \r\n1234567890\r\n0",        # <10 BWS
                     "A :: :: :: \r\n1234567890\r\n0",  # <10 BWS multiple send
                     "A           \r\n1234567890\r\n0", # >10 BWS
-                    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
+                    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r\n",
                     "A; ext=\x7Fval\r\n1234567890\r\n0",
                     " A",
                     );
 my @req_strings =  ("/echo_post_chunk",
                     "/i_do_not_exist_in_your_wildest_imagination");
 
-# This is expanded out.
-# Apache 2.0 handles this test more correctly than Apache 1.3. 
-# 1.3 returns 400 Bad Request in this case and it is not worth 
-# changing 1.3s behaviour.
-my @resp_strings;
-if (have_apache(1)) {
-   @resp_strings = ("HTTP/1.1 200 OK",
+# This is expanded out as these results...
+my @resp_strings = ("HTTP/1.1 200 OK",        # "0"
                     "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 200 OK",
+                    "HTTP/1.1 200 OK",        # "A"
                     "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 200 OK",
+                    "HTTP/1.1 200 OK",        # "A; ext=val"
                     "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 200 OK",
+                    "HTTP/1.1 200 OK",        # "A    "
                     "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 200 OK",
-                    "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 400 Bad Request",
-                    "HTTP/1.1 400 Bad Request",
-                    "HTTP/1.1 400 Bad Request",
-                    "HTTP/1.1 400 Bad Request",
+                    "HTTP/1.1 400 Bad Request", # "A :: :: :: "
                     "HTTP/1.1 400 Bad Request",
+                    "HTTP/1.1 400 Bad Request", # >10 BWS
                     "HTTP/1.1 400 Bad Request",
-                    "HTTP/1.1 400 Bad Request",
-                    "HTTP/1.1 400 Bad Request",
-		   );
-} 
-else {
-   @resp_strings = ("HTTP/1.1 200 OK",
-                    "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 200 OK",
-                    "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 200 OK",
-                    "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 200 OK",
-                    "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 200 OK",
-                    "HTTP/1.1 404 Not Found",
-                    "HTTP/1.1 400 Bad Request",
-                    "HTTP/1.1 400 Bad Request",
-                    "HTTP/1.1 413 Request Entity Too Large",
+                    "HTTP/1.1 413 Request Entity Too Large", # Overflow size
                     "HTTP/1.1 413 Request Entity Too Large",
+                    "HTTP/1.1 400 Bad Request",    # Ctrl in data
                     "HTTP/1.1 400 Bad Request",
-                    "HTTP/1.1 400 Bad Request",
-                    "HTTP/1.1 400 Bad Request",
+                    "HTTP/1.1 400 Bad Request",    # Invalid LWS
                     "HTTP/1.1 400 Bad Request",
                    );
-}
 
 my $tests = 4 * @test_strings + 1;
 my $vars = Apache::Test::vars();



Mime
View raw message