Mercurial > hg > nginx-tests
comparison proxy_cache_path.t @ 568:907e89fba9c3
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Sun, 03 May 2015 12:45:09 +0300 |
parents | 5b5ef52d6fd2 |
children | 2cd00179f4b2 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
22 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 plan(skip_all => 'win32') if $^O eq 'MSWin32'; | 25 plan(skip_all => 'win32') if $^O eq 'MSWin32'; |
26 | 26 |
27 my $t = Test::Nginx->new()->has(qw/http proxy cache/) | 27 my $t = Test::Nginx->new()->has(qw/http proxy cache/)->plan(7) |
28 ->write_file_expand('nginx.conf', <<'EOF'); | 28 ->write_file_expand('nginx.conf', <<'EOF'); |
29 | 29 |
30 %%TEST_GLOBALS%% | 30 %%TEST_GLOBALS%% |
31 | 31 |
32 daemon off; | 32 daemon off; |
70 | 70 |
71 EOF | 71 EOF |
72 | 72 |
73 $t->write_file('t', 'SEE-THIS'); | 73 $t->write_file('t', 'SEE-THIS'); |
74 | 74 |
75 $t->try_run('no use_temp_path')->plan(7); | 75 $t->run(); |
76 | 76 |
77 ############################################################################### | 77 ############################################################################### |
78 | 78 |
79 like(http_get('/t?c=ON'), qr/MISS.*SEE-THIS/ms, 'temp path'); | 79 like(http_get('/t?c=ON'), qr/MISS.*SEE-THIS/ms, 'temp path'); |
80 like(http_get('/t?c=OFF'), qr/MISS.*SEE-THIS/ms, 'temp path off'); | 80 like(http_get('/t?c=OFF'), qr/MISS.*SEE-THIS/ms, 'temp path off'); |