diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-07-05 08:08:46 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-08-27 02:16:54 -0400 |
commit | a0a8cf821d2292e6662119e158e73c175452f1c3 (patch) | |
tree | 5004f9e26779aef636774b04091a7422e873fcb4 /tests/request.t | |
parent | d4f43f7e1b817c15ecc63327acbca0e70d23f362 (diff) | |
download | lighttpd-git-a0a8cf821d2292e6662119e158e73c175452f1c3.tar.gz |
[tests] mv tests from request.t to test_request.c
move some tests from tests/*.t to src/t/test_request.c
Diffstat (limited to 'tests/request.t')
-rwxr-xr-x | tests/request.t | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/tests/request.t b/tests/request.t index ea4b1fb7..ea8852d6 100755 --- a/tests/request.t +++ b/tests/request.t @@ -8,7 +8,7 @@ BEGIN { use strict; use IO::Socket; -use Test::More tests => 54; +use Test::More tests => 52; use LightyTest; my $tf = LightyTest->new(); @@ -394,23 +394,6 @@ ok($tf->handle_http($t) == 0, 'GET, Range start out of range'); $t->{REQUEST} = ( <<EOF -GET / HTTP/1.0 -Hsgfsdjf: asdfhdf -hdhd: shdfhfdasd -hfhr: jfghsdfg -jfuuehdmn: sfdgjfdg -jvcbzufdg: sgfdfg -hrnvcnd: jfjdfg -jfusfdngmd: gfjgfdusdfg -nfj: jgfdjdfg -jfue: jfdfdg -EOF - ); -$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ]; -ok($tf->handle_http($t) == 0, 'larger headers'); - - -$t->{REQUEST} = ( <<EOF GET /range.pdf HTTP/1.1 Host: 123.example.org Range: bytes=0- @@ -462,15 +445,6 @@ ok($tf->handle_http($t) == 0, 'OPTIONS for RTSP'); my $nextyr = (gmtime(time()))[5] + 1900 + 1; -$t->{REQUEST} = ( <<EOF -GET /index.html HTTP/1.0 -If-Modified-Since: Sun, 01 Jan $nextyr 00:00:02 GMT -If-Modified-Since: Sun, 01 Jan $nextyr 00:00:02 GMT -EOF - ); -$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 304 } ]; -ok($tf->handle_http($t) == 0, 'Duplicate If-Mod-Since, with equal timestamps'); - $t->{REQUEST} = ( "GET / HTTP/1.0\r\nIf-Modified-Since: \r\n\r\n" ); $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ]; ok($tf->handle_http($t) == 0, 'empty If-Modified-Since'); |