Mercurial > hg > nginx-tests
comparison js.t @ 1810:7cf848422b28
Tests: removed remaining njs version checks older than 0.6.0.
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Fri, 02 Dec 2022 17:46:16 -0800 |
parents | e55aa7021ea5 |
children | 520fb74cce4c |
comparison
equal
deleted
inserted
replaced
1809:c41ac260299f | 1810:7cf848422b28 |
---|---|
282 like(http_get('/return_method?c=301&t=path'), qr/ 301 .*Location: path/s, | 282 like(http_get('/return_method?c=301&t=path'), qr/ 301 .*Location: path/s, |
283 'return redirect'); | 283 'return redirect'); |
284 like(http_get('/return_method?c=404'), qr/404 Not.*html/s, 'return error page'); | 284 like(http_get('/return_method?c=404'), qr/404 Not.*html/s, 'return error page'); |
285 like(http_get('/return_method?c=inv'), qr/ 500 /, 'return invalid'); | 285 like(http_get('/return_method?c=inv'), qr/ 500 /, 'return invalid'); |
286 | 286 |
287 TODO: { | |
288 local $TODO = 'not yet' | |
289 unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.0'; | |
290 | |
291 like(http_get('/type?path=variables.host'), qr/200 OK.*type: string$/s, | 287 like(http_get('/type?path=variables.host'), qr/200 OK.*type: string$/s, |
292 'variables type'); | 288 'variables type'); |
293 like(http_get('/type?path=rawVariables.host'), qr/200 OK.*type: buffer$/s, | 289 like(http_get('/type?path=rawVariables.host'), qr/200 OK.*type: buffer$/s, |
294 'rawVariables type'); | 290 'rawVariables type'); |
295 | 291 |
297 'requestText type'); | 293 'requestText type'); |
298 like(http_post('/type?path=requestBuffer'), qr/200 OK.*type: buffer$/s, | 294 like(http_post('/type?path=requestBuffer'), qr/200 OK.*type: buffer$/s, |
299 'requestBuffer type'); | 295 'requestBuffer type'); |
300 like(http_post('/request_body_cache'), | 296 like(http_post('/request_body_cache'), |
301 qr/requestText:string requestBuffer:buffer$/s, 'request body cache'); | 297 qr/requestText:string requestBuffer:buffer$/s, 'request body cache'); |
302 | |
303 } | |
304 | 298 |
305 like(http_get('/var'), qr/variable=127.0.0.1/, 'r.variables'); | 299 like(http_get('/var'), qr/variable=127.0.0.1/, 'r.variables'); |
306 like(http_get('/global'), qr/global=njs/, 'global code'); | 300 like(http_get('/global'), qr/global=njs/, 'global code'); |
307 like(http_get('/log'), qr/200 OK/, 'r.log'); | 301 like(http_get('/log'), qr/200 OK/, 'r.log'); |
308 | 302 |