Mercurial > hg > nginx-tests
comparison proxy_cache_path.t @ 522:5b5ef52d6fd2
Tests: removed use_temp_path TODOs.
The tests are skipped on the stable branch.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 02 Feb 2015 19:50:52 +0300 |
parents | 6b9bfe18fdc8 |
children | 907e89fba9c3 |
comparison
equal
deleted
inserted
replaced
521:6b9bfe18fdc8 | 522:5b5ef52d6fd2 |
---|---|
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'); |
81 | |
82 TODO: { | |
83 local $TODO = 'not yet'; | |
84 | |
85 like(http_get('/t?c=LEVELS'), qr/MISS.*SEE-THIS/ms, 'temp path levels'); | 81 like(http_get('/t?c=LEVELS'), qr/MISS.*SEE-THIS/ms, 'temp path levels'); |
86 | |
87 } | |
88 | 82 |
89 $t->write_file('t', 'SEE-THAT'); | 83 $t->write_file('t', 'SEE-THAT'); |
90 | 84 |
91 like(http_get('/t?c=ON'), qr/HIT.*SEE-THIS/ms, 'temp path cached'); | 85 like(http_get('/t?c=ON'), qr/HIT.*SEE-THIS/ms, 'temp path cached'); |
92 like(http_get('/t?c=OFF'), qr/HIT.*SEE-THIS/ms, 'temp path cached off'); | 86 like(http_get('/t?c=OFF'), qr/HIT.*SEE-THIS/ms, 'temp path cached off'); |
93 | |
94 TODO: { | |
95 local $TODO = 'not yet'; | |
96 | |
97 like(http_get('/t?c=LEVELS'), qr/HIT.*SEE-THIS/ms, 'temp path cached levels'); | 87 like(http_get('/t?c=LEVELS'), qr/HIT.*SEE-THIS/ms, 'temp path cached levels'); |
98 | |
99 } | |
100 | 88 |
101 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); | 89 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); |
102 | 90 |
103 ############################################################################### | 91 ############################################################################### |