Mercurial > hg > nginx-tests
comparison proxy_cache_convert_head.t @ 1020:196d33c2bb45
Tests: removed TODO and try_run() checks for legacy versions.
Also removed now unused spdy.t and shmem prerequisite.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 31 Aug 2016 18:21:07 +0300 |
parents | 882267679006 |
children |
comparison
equal
deleted
inserted
replaced
1019:41139d6f8b7b | 1020:196d33c2bb45 |
---|---|
20 ############################################################################### | 20 ############################################################################### |
21 | 21 |
22 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 my $t = Test::Nginx->new()->has(qw/http proxy cache shmem/) | 25 my $t = Test::Nginx->new()->has(qw/http proxy cache/)->plan(8) |
26 ->write_file_expand('nginx.conf', <<'EOF'); | 26 ->write_file_expand('nginx.conf', <<'EOF'); |
27 | 27 |
28 %%TEST_GLOBALS%% | 28 %%TEST_GLOBALS%% |
29 | 29 |
30 daemon off; | 30 daemon off; |
76 } | 76 } |
77 | 77 |
78 EOF | 78 EOF |
79 | 79 |
80 $t->write_file('t.html', 'SEE-THIS'); | 80 $t->write_file('t.html', 'SEE-THIS'); |
81 | 81 $t->run(); |
82 $t->try_run('no proxy_cache_convert_head')->plan(8); | |
83 | 82 |
84 ############################################################################### | 83 ############################################################################### |
85 | 84 |
86 like(http_get('/'), qr/X-Method: GET/, 'get'); | 85 like(http_get('/'), qr/X-Method: GET/, 'get'); |
87 like(http_head('/?2'), qr/X-Method: HEAD/, 'head'); | 86 like(http_head('/?2'), qr/X-Method: HEAD/, 'head'); |