Mercurial > hg > nginx-tests
comparison slice.t @ 1381:97c8280de681
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 08 Oct 2018 15:30:39 +0300 |
parents | 766bcbb632ee |
children | ab13e2744d05 |
comparison
equal
deleted
inserted
replaced
1380:f50c7d90f5c9 | 1381:97c8280de681 |
---|---|
231 like($r, qr/ 206 /, 'if-range - 206 partial reply'); | 231 like($r, qr/ 206 /, 'if-range - 206 partial reply'); |
232 like($r, qr/^34$/m, 'if-range - correct content'); | 232 like($r, qr/^34$/m, 'if-range - correct content'); |
233 | 233 |
234 # respect Last-Modified from non-cacheable response with If-Range | 234 # respect Last-Modified from non-cacheable response with If-Range |
235 | 235 |
236 TODO: { | |
237 local $TODO = 'not yet' unless $t->has_version('1.13.5'); | |
238 | |
239 my ($lm) = http_get('/t') =~ /Last-Modified: (.*)/; | 236 my ($lm) = http_get('/t') =~ /Last-Modified: (.*)/; |
240 $r = get('/proxy/t', "Range: bytes=3-4\nIf-Range: $lm"); | 237 $r = get('/proxy/t', "Range: bytes=3-4\nIf-Range: $lm"); |
241 like($r, qr/ 206 /, 'if-range last-modified proxy - 206 partial reply'); | 238 like($r, qr/ 206 /, 'if-range last-modified proxy - 206 partial reply'); |
242 like($r, qr/^34$/m, 'if-range last-modified proxy - correct content'); | 239 like($r, qr/^34$/m, 'if-range last-modified proxy - correct content'); |
243 | |
244 } | |
245 | 240 |
246 $r = get('/cache/t?ifb', "Range: bytes=3-4\nIf-Range: bad"); | 241 $r = get('/cache/t?ifb', "Range: bytes=3-4\nIf-Range: bad"); |
247 like($r, qr/ 200 /, 'if-range bad - 200 ok'); | 242 like($r, qr/ 200 /, 'if-range bad - 200 ok'); |
248 like($r, qr/^0123456789abcdef$/m, 'if-range bad - correct content'); | 243 like($r, qr/^0123456789abcdef$/m, 'if-range bad - correct content'); |
249 | 244 |