Return-Path: Delivered-To: apmail-httpd-test-cvs-archive@www.apache.org Received: (qmail 56135 invoked from network); 19 Aug 2005 17:22:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Aug 2005 17:22:55 -0000 Received: (qmail 6690 invoked by uid 500); 19 Aug 2005 17:22:55 -0000 Delivered-To: apmail-httpd-test-cvs-archive@httpd.apache.org Received: (qmail 6663 invoked by uid 500); 19 Aug 2005 17:22:54 -0000 Mailing-List: contact test-cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list test-cvs@httpd.apache.org Received: (qmail 6650 invoked by uid 99); 19 Aug 2005 17:22:54 -0000 X-ASF-Spam-Status: No, hits=-9.3 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME,USERPASS X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 19 Aug 2005 10:22:54 -0700 Received: (qmail 56130 invoked by uid 65534); 19 Aug 2005 17:22:54 -0000 Message-ID: <20050819172254.56127.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: test-cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 @@ + + + DocumentRoot @SERVERROOT@/htdocs + + + + DocumentRoot @SERVERROOT@/htdocs + + + ## ## @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 @@ + + + + + + BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL1_PORT@ loadfactor=1 + BalancerMember http://@SERVERNAME@:@PROXY_HTTP_BAL2_PORT@ loadfactor=1 + + + ProxySet balancer://foo lbmethod=bytraffic + + + ProxyPass balancer://foo/ + + + + 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");