Mercurial > hg > nginx-tests
comparison rewrite.t @ 397:847ea345becb
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 05 May 2014 11:46:01 +0400 |
parents | 43d40a678a64 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
396:5eb0df61f371 | 397:847ea345becb |
---|---|
153 like(http_get('/no?a=b'), qr!^Location: http://example.com/\?c=d\x0d?$!ms, | 153 like(http_get('/no?a=b'), qr!^Location: http://example.com/\?c=d\x0d?$!ms, |
154 'no args with args'); | 154 'no args with args'); |
155 | 155 |
156 like(http_get('/return204'), qr!204 No Content!, 'return 204'); | 156 like(http_get('/return204'), qr!204 No Content!, 'return 204'); |
157 like(http_get('/return200'), qr!200 OK!, 'return 200'); | 157 like(http_get('/return200'), qr!200 OK!, 'return 200'); |
158 | |
159 TODO: { | |
160 local $TODO = 'not yet' unless $t->has_version('1.5.6'); | |
161 | |
162 like(http_get('/return306'), qr!HTTP/1.1 306 !, 'return 306'); | 158 like(http_get('/return306'), qr!HTTP/1.1 306 !, 'return 306'); |
163 | |
164 } | |
165 | |
166 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'); |
167 | 160 |
168 like(http_get('/error404return405'), qr!HTTP/1.1 404!, 'error 404 return 405'); | 161 like(http_get('/error404return405'), qr!HTTP/1.1 404!, 'error 404 return 405'); |
169 | 162 |
170 # status code should be 405, and entity body is expected (vs. normal 204 | 163 # status code should be 405, and entity body is expected (vs. normal 204 |