httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r109345 - /httpd/test/trunk/perl-framework/t/htdocs/modules/cgi /httpd/test/trunk/perl-framework/t/htdocs/modules/cgi/nph-101.pl.PL /httpd/test/trunk/perl-framework/t/modules/proxy.t
Date Wed, 01 Dec 2004 13:57:30 GMT
Author: jorton
Date: Wed Dec  1 05:57:28 2004
New Revision: 109345

URL: http://svn.apache.org/viewcvs?view=rev&rev=109345
Log:
Test handling of interim 1xx responses.

Added:
   httpd/test/trunk/perl-framework/t/htdocs/modules/cgi/nph-101.pl.PL
Modified:
   httpd/test/trunk/perl-framework/t/htdocs/modules/cgi/   (props changed)
   httpd/test/trunk/perl-framework/t/modules/proxy.t

Added: httpd/test/trunk/perl-framework/t/htdocs/modules/cgi/nph-101.pl.PL
Url: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/htdocs/modules/cgi/nph-101.pl.PL?view=auto&rev=109345
==============================================================================
--- (empty file)
+++ httpd/test/trunk/perl-framework/t/htdocs/modules/cgi/nph-101.pl.PL	Wed Dec  1 05:57:28
2004
@@ -0,0 +1,9 @@
+
+print "HTTP/1.1 101 Please Wait...\r\n";
+print "Host: nph-101\r\n\r\n";
+
+print "HTTP/1.1 200 OK\r\n";
+print "Content-Type: text/plain\r\n\r\n";
+
+print "this is nph-stdout";
+

Modified: httpd/test/trunk/perl-framework/t/modules/proxy.t
Url: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/modules/proxy.t?view=diff&rev=109345&p1=httpd/test/trunk/perl-framework/t/modules/proxy.t&r1=109344&p2=httpd/test/trunk/perl-framework/t/modules/proxy.t&r2=109345
==============================================================================
--- httpd/test/trunk/perl-framework/t/modules/proxy.t	(original)
+++ httpd/test/trunk/perl-framework/t/modules/proxy.t	Wed Dec  1 05:57:28 2004
@@ -6,7 +6,7 @@
 use Apache::TestUtil;
 use Apache::TestConfig ();
 
-plan tests => 8, need_module 'proxy';
+plan tests => 10, need_module 'proxy';
 
 Apache::TestRequest::module("proxy_http_reverse");
 Apache::TestRequest::user_agent(requests_redirectable => 0);
@@ -23,8 +23,12 @@
     $r = GET("/reverse/modules/cgi/env.pl?reverse-proxy");
     ok t_cmp($r->code, 200, "reverse proxy with query string");
     ok t_cmp($r->content, qr/QUERY_STRING = reverse-proxy\n/s, "reverse proxied query
string OK");
+
+    $r = GET("/reverse/modules/cgi/nph-101.pl");
+    ok t_cmp($r->code, 200, "reverse proxy to nph-101");
+    ok t_cmp($r->content, "this is nph-stdout", "reverse proxy 101 response");
 } else {
-    skip "skipping tests without mod_cgi" foreach(1..4);
+    skip "skipping tests without mod_cgi" foreach (1..6);
 }
 
 if (have_module('alias')) {

Mime
View raw message