Mercurial > hg > nginx-tests
comparison proxy_cache_vary.t @ 478:fec6dc7e0fc3
Tests: another Vary normalization test.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 21 Oct 2014 01:44:53 +0400 |
parents | 4e335141aa4b |
children | 7e823c8f7d31 |
comparison
equal
deleted
inserted
replaced
477:c94fc8e41f5f | 478:fec6dc7e0fc3 |
---|---|
101 | 101 |
102 $t->write_file('index.html', 'SEE-THIS'); | 102 $t->write_file('index.html', 'SEE-THIS'); |
103 $t->write_file('asterisk', 'SEE-THIS'); | 103 $t->write_file('asterisk', 'SEE-THIS'); |
104 $t->write_file('complex', 'SEE-THIS'); | 104 $t->write_file('complex', 'SEE-THIS'); |
105 | 105 |
106 $t->try_run('no proxy_ignore_headers Vary')->plan(40); | 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'; |
111 | 111 |
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'); | 248 like(get('/', 'foo,bar'), qr/HIT/ms, 'normalize whitespace'); |
249 like(get('/', 'foo,, ,bar , '), qr/HIT/ms, 'normalize empty'); | |
249 like(get('/', 'bar,foo'), qr/HIT/ms, 'normalize order'); | 250 like(get('/', 'bar,foo'), qr/HIT/ms, 'normalize order'); |
250 | 251 |
251 } | 252 } |
252 | 253 |
253 ############################################################################### | 254 ############################################################################### |