summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2018-12-03 18:59:37 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2018-12-03 23:03:04 -0500
commit5a32d0f72a35e41db90de2f80531b3059dabdf4c (patch)
treef05fecd926a4fe441a40233004c0f986b3404b4b /tests
parentddf95741b5330e025733ffa6678dac971a48efa0 (diff)
downloadlighttpd1.4-5a32d0f72a35e41db90de2f80531b3059dabdf4c.tar.gz
lighttpd1.4-5a32d0f72a35e41db90de2f80531b3059dabdf4c.zip
[mod_access] t/test_mod_access
create t/test_mod_access to test mod_access basic logic remove tests/mod-access.t
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt1
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/SConscript1
-rw-r--r--tests/meson.build1
-rwxr-xr-xtests/mod-access.t50
5 files changed, 0 insertions, 54 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index f033e562..6bd93b30 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -21,7 +21,6 @@ set(T_FILES
core-response.t
core-var-include.t
lowercase.t
- mod-access.t
mod-auth.t
mod-cgi.t
mod-compress.t
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b680ef23..da67cd21 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -37,7 +37,6 @@ CONFS=\
LightyTest.pm \
lowercase.conf \
lowercase.t \
- mod-access.t \
mod-auth.t \
mod-cgi.t \
mod-compress.conf \
diff --git a/tests/SConscript b/tests/SConscript
index e542dc1c..bbb92df2 100644
--- a/tests/SConscript
+++ b/tests/SConscript
@@ -18,7 +18,6 @@ extra_dist = Split('fastcgi-10.conf \
core-request.t \
core-response.t \
core-keepalive.t \
- mod-access.t \
mod-auth.t \
mod-cgi.t \
mod-compress.t \
diff --git a/tests/meson.build b/tests/meson.build
index 4927f795..006268d0 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -30,7 +30,6 @@ tests = [
'core-response.t',
'core-var-include.t',
'lowercase.t',
- 'mod-access.t',
'mod-auth.t',
'mod-cgi.t',
'mod-compress.t',
diff --git a/tests/mod-access.t b/tests/mod-access.t
deleted file mode 100755
index de4f22c1..00000000
--- a/tests/mod-access.t
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/env perl
-BEGIN {
- # add current source dir to the include-path
- # we need this for make distcheck
- (my $srcdir = $0) =~ s,/[^/]+$,/,;
- unshift @INC, $srcdir;
-}
-
-use strict;
-use IO::Socket;
-use Test::More tests => 6;
-use LightyTest;
-
-my $tf = LightyTest->new();
-my $t;
-
-ok($tf->start_proc == 0, "Starting lighttpd") or die();
-
-$t->{REQUEST} = ( <<EOF
-GET /index.html~ HTTP/1.0
-EOF
- );
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];
-ok($tf->handle_http($t) == 0, 'forbid access to ...~');
-
-$t->{REQUEST} = ( <<EOF
-GET /index.html~/ HTTP/1.0
-EOF
- );
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];
-ok($tf->handle_http($t) == 0, '#1230 - forbid access to ...~ - trailing slash');
-
-$t->{REQUEST} = ( <<EOF
-GET /ssi-include.txt HTTP/1.0
-Host: allow.example.org
-EOF
- );
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
-ok($tf->handle_http($t) == 0, 'explicitly allowed');
-
-$t->{REQUEST} = ( <<EOF
-GET /cgi.pl HTTP/1.0
-Host: allow.example.org
-EOF
- );
-$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];
-ok($tf->handle_http($t) == 0, 'not explicitly allowed');
-
-ok($tf->stop_proc == 0, "Stopping lighttpd");
-