Mercurial > hg > nginx-tests
changeset 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 | 384c05af0ef9 |
children | 6d35acdf9a61 |
files | proxy_cache_vary.t |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy_cache_vary.t Mon Oct 27 16:53:35 2014 +0300 +++ b/proxy_cache_vary.t Tue Oct 28 13:31:04 2014 +0300 @@ -107,7 +107,7 @@ ############################################################################### -local $TODO = 'not yet'; +local $TODO = 'not yet' unless $t->has_version('1.7.7'); like(get('/', 'gzip'), qr/MISS/ms, 'first request'); like(get('/', 'gzip'), qr/HIT/ms, 'vary match cached'); @@ -237,16 +237,14 @@ # specification (e.g., reordering field values when order is not # significant; case-normalization, where values are defined to be # case-insensitive) -# -# No normalization is currently implemented. like(get('/', 'foo, bar'), qr/MISS/ms, 'normalize first'); +like(get('/', 'foo,bar'), qr/HIT/ms, 'normalize whitespace'); +like(get('/', 'foo,, ,bar , '), qr/HIT/ms, 'normalize empty'); TODO: { local $TODO = 'not yet'; -like(get('/', 'foo,bar'), qr/HIT/ms, 'normalize whitespace'); -like(get('/', 'foo,, ,bar , '), qr/HIT/ms, 'normalize empty'); like(get('/', 'bar,foo'), qr/HIT/ms, 'normalize order'); }