httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r1780905 - in /httpd/test/framework/trunk/t: conf/extra.conf.in modules/proxy.t
Date Mon, 30 Jan 2017 12:17:43 GMT
Author: jorton
Date: Mon Jan 30 12:17:43 2017
New Revision: 1780905

URL: http://svn.apache.org/viewvc?rev=1780905&view=rev
Log:
Regression test for bug introduced in r1773397.

Modified:
    httpd/test/framework/trunk/t/conf/extra.conf.in
    httpd/test/framework/trunk/t/modules/proxy.t

Modified: httpd/test/framework/trunk/t/conf/extra.conf.in
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/conf/extra.conf.in?rev=1780905&r1=1780904&r2=1780905&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/conf/extra.conf.in (original)
+++ httpd/test/framework/trunk/t/conf/extra.conf.in Mon Jan 30 12:17:43 2017
@@ -279,6 +279,9 @@
       <IfVersion >= 2.4.7>
         ProxyPass /uds unix:/tmp/test-ptf.sock|http:
       </IfVersion>
+      <Location /reverse/locproxy/>
+         ProxyPass http://@SERVERNAME@:@PORT@/
+      </Location>
    </VirtualHost>
 
    <IfVersion >= 2.2.5>

Modified: httpd/test/framework/trunk/t/modules/proxy.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/proxy.t?rev=1780905&r1=1780904&r2=1780905&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/proxy.t (original)
+++ httpd/test/framework/trunk/t/modules/proxy.t Mon Jan 30 12:17:43 2017
@@ -6,7 +6,7 @@ use Apache::TestRequest;
 use Apache::TestUtil;
 use Apache::TestConfig ();
 
-my $num_tests = 17;
+my $num_tests = 19;
 if (have_min_apache_version('2.4.7')) {
     $num_tests++;
 }
@@ -19,6 +19,10 @@ my $r = GET("/reverse/");
 ok t_cmp($r->code, 200, "reverse proxy to index.html");
 ok t_cmp($r->content, qr/^welcome to /, "reverse proxied body");
 
+$r = GET("/reverse/locproxy/");
+ok t_cmp($r->code, 200, "reverse Location-proxy to index.html");
+ok t_cmp($r->content, qr/^welcome to /, "reverse Location-proxied body");
+
 if (have_cgi) {
     $r = GET("/reverse/modules/cgi/env.pl");
     ok t_cmp($r->code, 200, "reverse proxy to env.pl");



Mime
View raw message