Mercurial > hg > nginx-tests
comparison proxy_cache_vary.t @ 481:7e823c8f7d31
Tests: adjusted TODOs for cache Vary support committed in 1.7.7.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 28 Oct 2014 13:31:04 +0300 |
parents | fec6dc7e0fc3 |
children | 3036e3af0e08 |
comparison
equal
deleted
inserted
replaced
480:384c05af0ef9 | 481:7e823c8f7d31 |
---|---|
105 | 105 |
106 $t->try_run('no proxy_ignore_headers Vary')->plan(41); | 106 $t->try_run('no proxy_ignore_headers Vary')->plan(41); |
107 | 107 |
108 ############################################################################### | 108 ############################################################################### |
109 | 109 |
110 local $TODO = 'not yet'; | 110 local $TODO = 'not yet' unless $t->has_version('1.7.7'); |
111 | 111 |
112 like(get('/', 'gzip'), qr/MISS/ms, 'first request'); | 112 like(get('/', 'gzip'), qr/MISS/ms, 'first request'); |
113 like(get('/', 'gzip'), qr/HIT/ms, 'vary match cached'); | 113 like(get('/', 'gzip'), qr/HIT/ms, 'vary match cached'); |
114 like(get('/', 'deflate'), qr/MISS/ms, 'vary mismatch'); | 114 like(get('/', 'deflate'), qr/MISS/ms, 'vary mismatch'); |
115 like(get('/', 'deflate'), qr/HIT/ms, 'vary mismatch cached'); | 115 like(get('/', 'deflate'), qr/HIT/ms, 'vary mismatch cached'); |
235 # o normalizing both header field values in a way that is known to | 235 # o normalizing both header field values in a way that is known to |
236 # have identical semantics, according to the header field's | 236 # have identical semantics, according to the header field's |
237 # specification (e.g., reordering field values when order is not | 237 # specification (e.g., reordering field values when order is not |
238 # significant; case-normalization, where values are defined to be | 238 # significant; case-normalization, where values are defined to be |
239 # case-insensitive) | 239 # case-insensitive) |
240 # | |
241 # No normalization is currently implemented. | |
242 | 240 |
243 like(get('/', 'foo, bar'), qr/MISS/ms, 'normalize first'); | 241 like(get('/', 'foo, bar'), qr/MISS/ms, 'normalize first'); |
242 like(get('/', 'foo,bar'), qr/HIT/ms, 'normalize whitespace'); | |
243 like(get('/', 'foo,, ,bar , '), qr/HIT/ms, 'normalize empty'); | |
244 | 244 |
245 TODO: { | 245 TODO: { |
246 local $TODO = 'not yet'; | 246 local $TODO = 'not yet'; |
247 | 247 |
248 like(get('/', 'foo,bar'), qr/HIT/ms, 'normalize whitespace'); | |
249 like(get('/', 'foo,, ,bar , '), qr/HIT/ms, 'normalize empty'); | |
250 like(get('/', 'bar,foo'), qr/HIT/ms, 'normalize order'); | 248 like(get('/', 'bar,foo'), qr/HIT/ms, 'normalize order'); |
251 | 249 |
252 } | 250 } |
253 | 251 |
254 ############################################################################### | 252 ############################################################################### |