Mercurial > hg > nginx-tests
comparison ssi.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 | 5baf4b01cae4 |
children | 517cde5075d8 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
157 like(http_get('/test-empty1.html'), qr/HTTP/, 'empty with ssi'); | 157 like(http_get('/test-empty1.html'), qr/HTTP/, 'empty with ssi'); |
158 like(http_get('/test-empty2.html'), qr/HTTP/, 'empty without ssi'); | 158 like(http_get('/test-empty2.html'), qr/HTTP/, 'empty without ssi'); |
159 like(http_get('/test-empty3.html'), qr/HTTP/, 'empty with proxy'); | 159 like(http_get('/test-empty3.html'), qr/HTTP/, 'empty with proxy'); |
160 like(http_get('/test-empty3.html'), qr/HTTP/, 'empty with proxy cached'); | 160 like(http_get('/test-empty3.html'), qr/HTTP/, 'empty with proxy cached'); |
161 | 161 |
162 TODO: { | |
163 local $TODO = 'not yet' unless $t->has_version('1.7.8'); | |
164 | |
165 like(http_get('/test-empty-postpone.html'), qr/HTTP.*XX/ms, | 162 like(http_get('/test-empty-postpone.html'), qr/HTTP.*XX/ms, |
166 'empty with postpone_output 0'); | 163 'empty with postpone_output 0'); |
167 | |
168 } | |
169 | 164 |
170 # handling of escaped URIs | 165 # handling of escaped URIs |
171 | 166 |
172 like(http_get('/unescape1.html'), qr/^XXtestXX$/m, 'escaped in path'); | 167 like(http_get('/unescape1.html'), qr/^XXtestXX$/m, 'escaped in path'); |
173 like(http_get('/unescape2.html'), qr/^XSEE-THISX$/m, | 168 like(http_get('/unescape2.html'), qr/^XSEE-THISX$/m, |
190 like(http_get('/var_format.html?custom=1'), | 185 like(http_get('/var_format.html?custom=1'), |
191 qr/x\w+, \d\d:\d\d:\d\dx/, 'custom ssi'); | 186 qr/x\w+, \d\d:\d\d:\d\dx/, 'custom ssi'); |
192 like(http_get('/var_format.html'), | 187 like(http_get('/var_format.html'), |
193 qr/x\w+, \d\d-\w{3}-\d{4} \d\d:\d\d:\d\d \w+x/, 'default ssi'); | 188 qr/x\w+, \d\d-\w{3}-\d{4} \d\d:\d\d:\d\d \w+x/, 'default ssi'); |
194 | 189 |
195 TODO: { | |
196 local $TODO = 'not yet' unless $t->has_version('1.7.8'); | |
197 | |
198 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); | 190 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); |
199 | 191 |
200 } | |
201 | |
202 ############################################################################### | 192 ############################################################################### |