Mercurial > hg > nginx-tests
changeset 489:3036e3af0e08
Tests: more Vary normalization tests.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 21 Oct 2014 03:46:20 +0400 |
parents | 8474d27c9147 |
children | 65d2d372ee31 |
files | proxy_cache_vary.t |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy_cache_vary.t +++ b/proxy_cache_vary.t @@ -103,7 +103,7 @@ EOF $t->write_file('asterisk', 'SEE-THIS'); $t->write_file('complex', 'SEE-THIS'); -$t->try_run('no proxy_ignore_headers Vary')->plan(41); +$t->try_run('no proxy_ignore_headers Vary')->plan(42); ############################################################################### @@ -237,10 +237,13 @@ 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) +# +# Only whitespace 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'); +like(get('/', 'foobar'), qr/MISS/ms, 'normalize no whitespace mismatch'); TODO: { local $TODO = 'not yet';