Return-Path: Delivered-To: apmail-httpd-test-cvs-archive@www.apache.org Received: (qmail 53261 invoked from network); 27 Jun 2004 18:39:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Jun 2004 18:39:11 -0000 Received: (qmail 83898 invoked by uid 500); 27 Jun 2004 18:39:10 -0000 Delivered-To: apmail-httpd-test-cvs-archive@httpd.apache.org Received: (qmail 83717 invoked by uid 500); 27 Jun 2004 18:39:04 -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: Delivered-To: mailing list test-cvs@httpd.apache.org Received: (qmail 83665 invoked by uid 99); 27 Jun 2004 18:39:03 -0000 X-ASF-Spam-Status: No, hits=2.2 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.27.1) with SMTP; Sun, 27 Jun 2004 11:39:01 -0700 Received: (qmail 53204 invoked by uid 1072); 27 Jun 2004 18:38:57 -0000 Date: 27 Jun 2004 18:38:57 -0000 Message-ID: <20040627183857.53203.qmail@minotaur.apache.org> From: stas@apache.org To: httpd-test-cvs@apache.org Subject: cvs commit: httpd-test/perl-framework/Apache-Test Changes X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N stas 2004/06/27 11:38:57 Modified: perl-framework/Apache-Test/t/conf extra.conf.in perl-framework/Apache-Test Changes Added: perl-framework/Apache-Test/t redirect.t Log: Add redirect tests Submitted by: David Wheeler Revision Changes Path 1.1 httpd-test/perl-framework/Apache-Test/t/redirect.t Index: redirect.t =================================================================== use strict; use warnings FATAL => 'all'; use Apache::Test; use Apache::TestRequest; plan tests => 6, have_module('mod_alias.c') && &have_lwp; my $url = '/redirect'; # Allow request to be redirected. ok my $res = GET $url; ok ! $res->is_redirect; # Don't let request be redirected. ok $res = GET($url, redirect_ok => 0); ok $res->is_redirect; # Allow no more requests to be redirected. Apache::TestRequest::user_agent(reset => 1, requests_redirectable => 0); ok $res = GET $url; ok $res->is_redirect; 1.3 +3 -1 httpd-test/perl-framework/Apache-Test/t/conf/extra.conf.in Index: extra.conf.in =================================================================== RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/t/conf/extra.conf.in,v retrieving revision 1.2 retrieving revision 1.3 diff -u -u -r1.2 -r1.3 --- extra.conf.in 11 Aug 2003 20:07:07 -0000 1.2 +++ extra.conf.in 27 Jun 2004 18:38:57 -0000 1.3 @@ -1,4 +1,6 @@ #this file will be Include-d by @ServerRoot@/httpd.conf #the subclass inside t/TEST added the authname and allowed_users variables - + + Redirect /redirect http://@ServerName@/redirected/ + 1.141 +2 -0 httpd-test/perl-framework/Apache-Test/Changes Index: Changes =================================================================== RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/Changes,v retrieving revision 1.140 retrieving revision 1.141 diff -u -u -r1.140 -r1.141 --- Changes 24 Jun 2004 13:25:30 -0000 1.140 +++ Changes 27 Jun 2004 18:38:57 -0000 1.141 @@ -8,6 +8,8 @@ =item 1.12-dev +Add redirect tests [David Wheeler ] + add -no-httpd runtime option to allow tests to run without configuring, starting, or stopping Apache. this essentially provides a direct Test::Harness interface through t/TEST, useful for running single tests