# HG changeset patch # User Maxim Dounin # Date 1374596705 -14400 # Node ID a9621dbbd0d4d5f8023c7f95577724f7ff8df9ff # Parent f36c3532a1179d207987423bdb5c9911d641922a Tests: remove TODOs with 1.3.x version checks. diff --git a/auth_basic.t b/auth_basic.t --- a/auth_basic.t +++ b/auth_basic.t @@ -101,14 +101,9 @@ SKIP: { or $t->has_module('--with-openssl'); like(http_get_auth('/', 'ssha', 'password'), qr!SEETHIS!, 'ssha'); - -TODO: { - local $TODO = 'not yet' unless $t->has_version('1.3.13'); like(http_get_auth('/', 'sha', 'password'), qr!SEETHIS!, 'sha'); } -} - unlike(http_get_auth('/', 'apr1', '123'), qr!SEETHIS!, 'apr1 md5 wrong'); unlike(http_get_auth('/', 'plain', '123'), qr!SEETHIS!, 'plain wrong'); unlike(http_get_auth('/', 'ssha', '123'), qr!SEETHIS!, 'ssha wrong'); diff --git a/body_chunked.t b/body_chunked.t --- a/body_chunked.t +++ b/body_chunked.t @@ -99,9 +99,6 @@ EOF ############################################################################### -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.3.9'); - like(http_get_body('/', '0123456789'), qr/X-Body: 0123456789\x0d?$/ms, 'body'); @@ -136,8 +133,6 @@ like(http_get_body('/discard', '01234567 like(http_get_body('/next', '0123456789'), qr/X-Body: 0123456789\x0d?$/ms, 'body chunked next upstream'); -} - ############################################################################### sub read_body_file { diff --git a/dav_chunked.t b/dav_chunked.t --- a/dav_chunked.t +++ b/dav_chunked.t @@ -55,9 +55,6 @@ EOF ############################################################################### -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.3.9'); - my $r; $r = http(<testdir() . '/file'), '1234567890' x 1024, 'put big content'); -} - ############################################################################### sub read_file { diff --git a/fastcgi_body.t b/fastcgi_body.t --- a/fastcgi_body.t +++ b/fastcgi_body.t @@ -62,9 +62,6 @@ like(http_get('/'), qr/X-Body: /, 'fastc like(http_get_length('/', ''), qr/X-Body: /, 'fastcgi empty body'); like(http_get_length('/', 'foobar'), qr/X-Body: foobar/, 'fastcgi body'); -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.3.9'); - like(http(<has_version('1.3.13'); - # establish connection my $s = upgrade_connect(); @@ -116,12 +113,11 @@ SKIP: { is(upgrade_read($s), "bar", "next to pipelined"); } -} - # connection should not be upgraded unless upgrade was actually # requested and allowed by configuration -my $s = upgrade_connect(noheader => 1); +undef $s; +$s = upgrade_connect(noheader => 1); ok(!$s, "handshake noupgrade"); ############################################################################### diff --git a/proxy_websocket.t b/proxy_websocket.t --- a/proxy_websocket.t +++ b/proxy_websocket.t @@ -72,9 +72,6 @@ EOF ############################################################################### -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.3.13'); - # establish websocket connection my $s = websocket_connect(); @@ -122,8 +119,6 @@ SKIP: { is(websocket_read($s), "bar", "next to pipelined"); } -} - ############################################################################### sub websocket_connect { diff --git a/range_if_range.t b/range_if_range.t --- a/range_if_range.t +++ b/range_if_range.t @@ -78,27 +78,13 @@ like($t1, qr/206/, 'if-range'); # If-Range + add_header Last-Modified "" $t1 = http_get_range('/t2.html', "Range: bytes=0-9\nIf-Range: wrong"); - -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.3.3'); - like($t1, qr/200 OK/, 'if-range notime'); - -} - unlike($t1, qr/Last-Modified: /, 'if-range notime - no last modified'); # If-Range + add_header Last-Modified "Mon, 28 Sep 1970 06:00:00 GMT" $t1 = http_get_range('/t3.html', "Range: bytes=0-9\nIf-Range: wrong"); - -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.3.3'); - like($t1, qr/200 OK/, 'if-range time wrong'); - -} - like($t1, qr/Last-Modified: Mon, 28 Sep 1970 06:00:00 GMT/, 'if-range time wrong - last modified'); diff --git a/realip.t b/realip.t --- a/realip.t +++ b/realip.t @@ -77,10 +77,6 @@ like(http_xff('/1', '192.0.2.1, 10.0.1.1 like(http_xff('/2', '10.0.1.1, 192.0.2.1, 127.0.0.1'), qr/^X-IP: 192.0.2.1/m, 'realip recursive on'); -TODO: { - -local $TODO = 'not yet' unless $t->has_version('1.3.14'); - like(http(<has_version('1.3.9'); - like(http(<