comparison proxy_cache_range.t @ 568:907e89fba9c3

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Sun, 03 May 2015 12:45:09 +0300
parents b4d657ba1a62
children 2cd00179f4b2
comparison
equal deleted inserted replaced
567:22bade4c7e12 568:907e89fba9c3
85 like(http_get_range('/t.html?1', 'Range: bytes=4-'), qr/^THIS/m, 85 like(http_get_range('/t.html?1', 'Range: bytes=4-'), qr/^THIS/m,
86 'cached range'); 86 'cached range');
87 like(http_get_range('/t.html?1', 'Range: bytes=0-2,4-'), qr/^SEE.*^THIS/ms, 87 like(http_get_range('/t.html?1', 'Range: bytes=0-2,4-'), qr/^SEE.*^THIS/ms,
88 'cached multipart range'); 88 'cached multipart range');
89 89
90 TODO: {
91 local $TODO = 'not yet' unless $t->has_version('1.7.8');
92
93 like(http_get_range('/min_uses/t.html?3', 'Range: bytes=4-'), 90 like(http_get_range('/min_uses/t.html?3', 'Range: bytes=4-'),
94 qr/^THIS/m, 'range below min_uses'); 91 qr/^THIS/m, 'range below min_uses');
95 92
96 like(http_get_range('/min_uses/t.html?4', 'Range: bytes=0-2,4-'), 93 like(http_get_range('/min_uses/t.html?4', 'Range: bytes=0-2,4-'),
97 qr/^SEE.*^THIS/ms, 'multipart range below min_uses'); 94 qr/^SEE.*^THIS/ms, 'multipart range below min_uses');
98
99 }
100 95
101 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); 96 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts');
102 97
103 ############################################################################### 98 ###############################################################################
104 99