~ubuntu-branches/ubuntu/hardy/lighttpd/hardy

« back to all changes in this revision

Viewing changes to tests/mod-access.t

  • Committer: Bazaar Package Importer
  • Author(s): Michele Angrisano
  • Date: 2007-07-28 20:33:22 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070728203322-ut5ym6udh0xjxkma
Tags: 1.4.16-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add fam/gamin stat cache engine support.
  - Replace Depends: on perl with Depends: on libterm-readline-perl-perl.
  - Make sure that upgrades succeed, even if we can't restart lighttpd.
  - Clean environment in init.d script.
  - Update maintainer field in debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
use strict;
10
10
use IO::Socket;
11
 
use Test::More tests => 3;
 
11
use Test::More tests => 4;
12
12
use LightyTest;
13
13
 
14
14
my $tf = LightyTest->new();
23
23
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];
24
24
ok($tf->handle_http($t) == 0, 'forbid access to ...~');
25
25
 
 
26
$t->{REQUEST}  = ( <<EOF
 
27
GET /index.html~/ HTTP/1.0
 
28
EOF
 
29
 );
 
30
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];
 
31
ok($tf->handle_http($t) == 0, '#1230 - forbid access to ...~ - trailing slash');
 
32
 
26
33
ok($tf->stop_proc == 0, "Stopping lighttpd");
27
34