httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1498076 - /httpd/test/framework/trunk/t/modules/proxy.t
Date Sun, 30 Jun 2013 10:10:56 GMT
Author: rjung
Date: Sun Jun 30 10:10:55 2013
New Revision: 1498076

URL: http://svn.apache.org/r1498076
Log:
Only for mod_proxy_balancer.

Modified:
    httpd/test/framework/trunk/t/modules/proxy.t

Modified: httpd/test/framework/trunk/t/modules/proxy.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/proxy.t?rev=1498076&r1=1498075&r2=1498076&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/proxy.t (original)
+++ httpd/test/framework/trunk/t/modules/proxy.t Sun Jun 30 10:10:55 2013
@@ -66,13 +66,17 @@ if (have_module('alias')) {
     ok t_cmp($r->code, 301, "reverse proxy of redirect");
     ok t_cmp($r->header("Location"), qr{http://[^/]*/reverse/alias}, "reverse proxy rewrote
redirect");
 
-    # More complex reverse mapping case with the balancer, PR 45434
-    Apache::TestRequest::module("proxy_http_balancer");
-    my $hostport = Apache::TestRequest::hostport();
-    $r = GET("/pr45434/redirect-me");
-    ok t_cmp($r->code, 301, "reverse proxy of redirect via balancer");
-    ok t_cmp($r->header("Location"), "http://$hostport/pr45434/5.html", "reverse proxy
via balancer rewrote redirect");
-    Apache::TestRequest::module("proxy_http_reverse"); # flip back 
+    if (have_module('proxy_balancer')) {
+        # More complex reverse mapping case with the balancer, PR 45434
+        Apache::TestRequest::module("proxy_http_balancer");
+        my $hostport = Apache::TestRequest::hostport();
+        $r = GET("/pr45434/redirect-me");
+        ok t_cmp($r->code, 301, "reverse proxy of redirect via balancer");
+        ok t_cmp($r->header("Location"), "http://$hostport/pr45434/5.html", "reverse proxy
via balancer rewrote redirect");
+        Apache::TestRequest::module("proxy_http_reverse"); # flip back 
+    } else {
+        skip "skipping tests without mod_proxy_balancer" foreach (1..2);
+    }
 
 } else {
     skip "skipping tests without mod_alias" foreach (1..4);



Mime
View raw message