Mercurial > hg > nginx-tests
comparison js_subrequests.t @ 1693:5ac6efbe5552
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 01 Jun 2021 16:40:18 +0300 |
parents | cd0461e1e392 |
children | 18ac4d9e5a2a |
comparison
equal
deleted
inserted
replaced
1692:f6795e2e6a4b | 1693:5ac6efbe5552 |
---|---|
506 is(get_json('/sr_options_body'), '["REQ-BODY"]', 'sr_options_body'); | 506 is(get_json('/sr_options_body'), '["REQ-BODY"]', 'sr_options_body'); |
507 is(get_json('/sr_options_method_head'), '{"c":200}', 'sr_options_method_head'); | 507 is(get_json('/sr_options_method_head'), '{"c":200}', 'sr_options_method_head'); |
508 is(get_json('/sr_body'), '{"a":{"b":1}}', 'sr_body'); | 508 is(get_json('/sr_body'), '{"a":{"b":1}}', 'sr_body'); |
509 is(get_json('/sr_body_special'), '{"e":"msg"}', 'sr_body_special'); | 509 is(get_json('/sr_body_special'), '{"e":"msg"}', 'sr_body_special'); |
510 is(get_json('/sr_in_variable_handler'), '["CB-VAR"]', 'sr_in_variable_handler'); | 510 is(get_json('/sr_in_variable_handler'), '["CB-VAR"]', 'sr_in_variable_handler'); |
511 | |
512 $t->todo_alerts() if $t->read_file('nginx.conf') =~ /aio (on|threads)/ | |
513 and !$t->has_version('1.17.9'); | |
514 | |
515 TODO: { | |
516 local $TODO = 'header already sent' if $t->read_file('nginx.conf') =~ /aio on/ | |
517 and !$t->has_version('1.17.9'); | |
518 local $TODO = 'open socket left' if $t->read_file('nginx.conf') =~ /aio thread/ | |
519 and !$t->has_version('1.17.9'); | |
520 | |
521 is(get_json('/sr_file'), '["SEE-THIS"]', 'sr_file'); | 511 is(get_json('/sr_file'), '["SEE-THIS"]', 'sr_file'); |
522 | |
523 } | |
524 | |
525 is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cache'); | 512 is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cache'); |
526 is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cached'); | 513 is(get_json('/sr_cache?c=1'), '["SEE-THIS"]', 'sr_cached'); |
527 is(get_json('/sr_js_in_subrequest'), '["JS-SUB"]', 'sr_js_in_subrequest'); | 514 is(get_json('/sr_js_in_subrequest'), '["JS-SUB"]', 'sr_js_in_subrequest'); |
528 is(get_json('/sr_unavail'), '[{"status":502,"uri":"/unavail"}]', | 515 is(get_json('/sr_unavail'), '[{"status":502,"uri":"/unavail"}]', |
529 'sr_unavail'); | 516 'sr_unavail'); |