Mercurial > hg > nginx-tests
comparison headers.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 | 0469ef3fcd34 |
children |
comparison
equal
deleted
inserted
replaced
1380:f50c7d90f5c9 | 1381:97c8280de681 |
---|---|
155 like(http_get('/daily'), qr/Expires:.*:33 GMT/, 'expires daily'); | 155 like(http_get('/daily'), qr/Expires:.*:33 GMT/, 'expires daily'); |
156 like(http_get('/modified'), qr/max-age=204./, 'expires modified'); | 156 like(http_get('/modified'), qr/max-age=204./, 'expires modified'); |
157 | 157 |
158 # "expires modified" with proxy | 158 # "expires modified" with proxy |
159 | 159 |
160 TODO: { | |
161 local $TODO = 'not yet' unless $t->has_version('1.13.5'); | |
162 | |
163 like(http_get('/modified/proxy'), qr/Expires: Mon, 28 Sep 1970 06:34:08 GMT/, | 160 like(http_get('/modified/proxy'), qr/Expires: Mon, 28 Sep 1970 06:34:08 GMT/, |
164 'expires modified proxy'); | 161 'expires modified proxy'); |
165 | |
166 } | |
167 | 162 |
168 # expires with variables | 163 # expires with variables |
169 | 164 |
170 like(http_get('/var?e=epoch'), qr/Expires:.*1970/, 'expires var epoch'); | 165 like(http_get('/var?e=epoch'), qr/Expires:.*1970/, 'expires var epoch'); |
171 like(http_get('/var?e=max'), qr/Expires:.*2037/, 'expires var max'); | 166 like(http_get('/var?e=max'), qr/Expires:.*2037/, 'expires var max'); |