# HG changeset patch # User Sergey Kandaurov # Date 1414492264 -10800 # Node ID 7e823c8f7d315f89e017a102421c4bf801903076 # Parent 384c05af0ef9d0515ebf0b636d282bf2adb8e4d1 Tests: adjusted TODOs for cache Vary support committed in 1.7.7. diff --git a/proxy_cache_vary.t b/proxy_cache_vary.t --- a/proxy_cache_vary.t +++ b/proxy_cache_vary.t @@ -107,7 +107,7 @@ EOF ############################################################################### -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 @@ like(get('/asterisk', 'gzip'), qr/MISS/m # 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'); }