Mercurial > hg > nginx-tests
comparison js_subrequests.t @ 1544:53ed2231403b
Tests: js TODO adjusted.
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Thu, 16 Jan 2020 19:15:25 +0300 |
parents | 0b97d431571f |
children | cde406e61e48 |
comparison
equal
deleted
inserted
replaced
1543:0b97d431571f | 1544:53ed2231403b |
---|---|
430 | 430 |
431 is(get_json('/sr'), '[{"status":404,"uri":"/p/sub2"}]', 'sr'); | 431 is(get_json('/sr'), '[{"status":404,"uri":"/p/sub2"}]', 'sr'); |
432 is(get_json('/sr_args'), '{"h":"xxx"}', 'sr_args'); | 432 is(get_json('/sr_args'), '{"h":"xxx"}', 'sr_args'); |
433 is(get_json('/sr_options_args'), '{"h":"xxx"}', 'sr_options_args'); | 433 is(get_json('/sr_options_args'), '{"h":"xxx"}', 'sr_options_args'); |
434 is(get_json('/sr_options_method?m=POST'), '["POST"]', 'sr method POST'); | 434 is(get_json('/sr_options_method?m=POST'), '["POST"]', 'sr method POST'); |
435 | |
436 TODO: { | |
437 local $TODO = 'not yet' | |
438 unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.3.3'; | |
439 | |
440 is(get_json('/sr_options_method?m=PURGE'), '["PURGE"]', 'sr method PURGE'); | 435 is(get_json('/sr_options_method?m=PURGE'), '["PURGE"]', 'sr method PURGE'); |
441 | |
442 } | |
443 | |
444 is(get_json('/sr_options_body'), '["REQ-BODY"]', 'sr_options_body'); | 436 is(get_json('/sr_options_body'), '["REQ-BODY"]', 'sr_options_body'); |
445 is(get_json('/sr_options_method_head'), '{"c":200,"s":0}', | 437 is(get_json('/sr_options_method_head'), '{"c":200,"s":0}', |
446 'sr_options_method_head'); | 438 'sr_options_method_head'); |
447 is(get_json('/sr_body'), '{"a":{"b":1}}', 'sr_body'); | 439 is(get_json('/sr_body'), '{"a":{"b":1}}', 'sr_body'); |
448 is(get_json('/sr_body_special'), '{"e":"msg"}', 'sr_body_special'); | 440 is(get_json('/sr_body_special'), '{"e":"msg"}', 'sr_body_special'); |