httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r233515 - in /httpd/test/trunk/perl-framework/t: conf/extra.conf.in conf/proxy.conf.in modules/proxy.t modules/proxy_balancer.t
Date Fri, 19 Aug 2005 17:22:53 GMT
Author: jim
Date: Fri Aug 19 10:22:48 2005
New Revision: 233515

URL: http://svn.apache.org/viewcvs?rev=233515&view=rev
Log:
Add in a simple test for balancer functionality...

Added:
    httpd/test/trunk/perl-framework/t/modules/proxy_balancer.t
Modified:
    httpd/test/trunk/perl-framework/t/conf/extra.conf.in
    httpd/test/trunk/perl-framework/t/conf/proxy.conf.in
    httpd/test/trunk/perl-framework/t/modules/proxy.t

Modified: httpd/test/trunk/perl-framework/t/conf/extra.conf.in
URL: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/conf/extra.conf.in?rev=233515&r1=233514&r2=233515&view=diff
==============================================================================
--- httpd/test/trunk/perl-framework/t/conf/extra.conf.in (original)
+++ httpd/test/trunk/perl-framework/t/conf/extra.conf.in Fri Aug 19 10:22:48 2005
@@ -216,6 +216,16 @@
    </VirtualHost>
 </IfModule>
 
+<IfModule mod_proxy_balancer.c>
+   <VirtualHost proxy_http_bal1>
+      DocumentRoot @SERVERROOT@/htdocs
+   </VirtualHost>
+
+   <VirtualHost proxy_http_bal2>
+      DocumentRoot @SERVERROOT@/htdocs
+   </VirtualHost>
+</IfModule>
+  
 ##
 ## @ACCESS_MODULE@ test config
 ##

Modified: httpd/test/trunk/perl-framework/t/conf/proxy.conf.in
URL: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/conf/proxy.conf.in?rev=233515&r1=233514&r2=233515&view=diff
==============================================================================
--- httpd/test/trunk/perl-framework/t/conf/proxy.conf.in (original)
+++ httpd/test/trunk/perl-framework/t/conf/proxy.conf.in Fri Aug 19 10:22:48 2005
@@ -7,3 +7,20 @@
     </VirtualHost>
 
 </IfModule>
+
+<IfModule mod_proxy_balancer.c>
+
+   <VirtualHost proxy_http_balancer>
+     <Proxy balancer://foo>
+       BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@  loadfactor=1
+       BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL2_PORT@  loadfactor=1
+     </Proxy>
+
+     ProxySet balancer://foo lbmethod=bytraffic
+
+     <Location /baltest>
+       ProxyPass balancer://foo/
+     </Location>
+
+   </VirtualHost>
+</IfModule>

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?rev=233515&r1=233514&r2=233515&view=diff
==============================================================================
--- httpd/test/trunk/perl-framework/t/modules/proxy.t (original)
+++ httpd/test/trunk/perl-framework/t/modules/proxy.t Fri Aug 19 10:22:48 2005
@@ -59,3 +59,4 @@
 } else {
     skip "skipping tests without mod_alias" foreach (1..2);
 }
+

Added: httpd/test/trunk/perl-framework/t/modules/proxy_balancer.t
URL: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/modules/proxy_balancer.t?rev=233515&view=auto
==============================================================================
--- httpd/test/trunk/perl-framework/t/modules/proxy_balancer.t (added)
+++ httpd/test/trunk/perl-framework/t/modules/proxy_balancer.t Fri Aug 19 10:22:48 2005
@@ -0,0 +1,16 @@
+use strict;
+use warnings FATAL => 'all';
+
+use Apache::Test;
+use Apache::TestRequest;
+use Apache::TestUtil;
+use Apache::TestConfig ();
+
+plan tests => 1, need_module 'proxy';
+
+Apache::TestRequest::module("proxy_http_balancer");
+Apache::TestRequest::user_agent(requests_redirectable => 0);
+
+
+my $r = GET("/baltest/index.html");
+ok t_cmp($r->code, 200, "Balancer did not die");



Mime
View raw message