Mercurial > hg > nginx-tests
comparison rewrite.t @ 1535:144c6ce732e4
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 02 Dec 2019 14:56:37 +0300 |
parents | 14bfd6643bbb |
children | 0902a4539c99 |
comparison
equal
deleted
inserted
replaced
1534:96fb3513345b | 1535:144c6ce732e4 |
---|---|
159 like(http_get('/return405'), qr!HTTP/1.1 405.*body!ms, 'return 405'); | 159 like(http_get('/return405'), qr!HTTP/1.1 405.*body!ms, 'return 405'); |
160 | 160 |
161 # this used to result in 404, but was changed in 1.15.4 | 161 # this used to result in 404, but was changed in 1.15.4 |
162 # to respond with 405 instead, much like a real error would do | 162 # to respond with 405 instead, much like a real error would do |
163 | 163 |
164 TODO: { | |
165 local $TODO = 'not yet' unless $t->has_version('1.15.4'); | |
166 | |
167 like(http_get('/error404return405'), qr!HTTP/1.1 405!, 'error 404 return 405'); | 164 like(http_get('/error404return405'), qr!HTTP/1.1 405!, 'error 404 return 405'); |
168 | |
169 } | |
170 | 165 |
171 # status code should be 405, and entity body is expected (vs. normal 204 | 166 # status code should be 405, and entity body is expected (vs. normal 204 |
172 # replies which doesn't expect to have body); use HTTP/1.1 for test | 167 # replies which doesn't expect to have body); use HTTP/1.1 for test |
173 # to make problem clear | 168 # to make problem clear |
174 | 169 |