httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: httpd-test/perl-framework/Apache-Test Changes
Date Sun, 27 Jun 2004 18:38:57 GMT
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 <david@kineticode.com>
  
  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
  -
  +<IfModule mod_alias.c>
  +  Redirect /redirect http://@ServerName@/redirected/
  +</IfModule>
  
  
  
  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 <david@kineticode.com>]
  +
   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
  
  
  

Mime
View raw message