Mercurial > hg > nginx-tests
comparison js_request_body.t @ 1520:9521130f6f22
Tests: js TODO adjusted.
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Tue, 15 Oct 2019 19:36:25 +0300 |
parents | 9d579fc770a6 |
children | a7902e5adeab |
comparison
equal
deleted
inserted
replaced
1519:787d904bdfe0 | 1520:9521130f6f22 |
---|---|
79 | 79 |
80 $t->try_run('no njs request body')->plan(3); | 80 $t->try_run('no njs request body')->plan(3); |
81 | 81 |
82 ############################################################################### | 82 ############################################################################### |
83 | 83 |
84 TODO: { | |
85 local $TODO = 'deprecated api' | |
86 unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.2.2'; | |
87 like(http_post('/body'), qr/REQ-BODY/, 'request body'); | 84 like(http_post('/body'), qr/REQ-BODY/, 'request body'); |
88 like(http_post('/in_file'), qr/request body is in a file/, | 85 like(http_post('/in_file'), qr/request body is in a file/, |
89 'request body in file'); | 86 'request body in file'); |
90 like(http_post_big('/body'), qr/200.*^(1234567890){1024}$/ms, | 87 like(http_post_big('/body'), qr/200.*^(1234567890){1024}$/ms, |
91 'request body big'); | 88 'request body big'); |
92 } | |
93 | 89 |
94 ############################################################################### | 90 ############################################################################### |
95 | 91 |
96 sub http_post { | 92 sub http_post { |
97 my ($url, %extra) = @_; | 93 my ($url, %extra) = @_; |