Mercurial > hg > nginx-tests
diff fastcgi_extra_data.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 | e145509cc6eb |
children |
line wrap: on
line diff
--- a/fastcgi_extra_data.t +++ b/fastcgi_extra_data.t @@ -81,32 +81,22 @@ EOF ############################################################################### -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.1'); - like(http_get('/'), qr/SEE-THIS(?!-BUT-NOT-THIS)/, 'response with extra data'); like(http_get('/short'), qr/SEE-THIS(?!.*:after)/s, 'too short response'); like(http_get('/empty'), qr/200 OK(?!.*:after)/s, 'empty too short response'); -} - like(http_head('/'), qr/200 OK(?!.*SEE-THIS)/s, 'no data in HEAD'); like(http_head('/short'), qr/200 OK(?!.*SEE-THIS)/s, 'too short to HEAD'); like(http_head('/empty'), qr/200 OK/, 'empty response to HEAD'); # unbuffered responses -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.1'); - like(http_get('/unbuf/'), qr/SEE-THIS(?!-BUT-NOT-THIS)/, 'unbuffered with extra data'); like(http_get('/unbuf/short'), qr/SEE-THIS(?!.*:after)/s, 'unbuffered too short response'); like(http_get('/unbuf/empty'), qr/200 OK(?!.*:after)/s, - 'unbuffered empty too short responsde'); - -} + 'unbuffered empty too short response'); like(http_head('/unbuf/'), qr/200 OK(?!.*SEE-THIS)/s, 'unbuffered no data in HEAD'); @@ -124,31 +114,17 @@ like(http_head('/head/short'), qr/200 OK like(http_get('/head/empty'), qr/200 OK/, 'head no body cached'); like(http_get('/head/matching'), qr/SEE-THIS/, 'head matching cached'); - -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.1'); - like(http_get('/head/extra'), qr/SEE-THIS(?!-BUT-NOT-THIS)/s, 'head extra cached'); like(http_get('/head/short'), qr/SEE-THIS(?!.*:after)/s, 'head too short cached'); -} - # "zero size buf" alerts (ticket #2018) -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.2'); - like(http_get('/zero'), qr/200 OK(?!.*NOT-THIS)/s, 'zero size'); like(http_get('/unbuf/zero'), qr/200 OK(?!.*NOT-THIS)/s, 'unbuffered zero size'); -} - -$t->todo_alerts() unless $t->has_version('1.19.2') - or !$t->has_version('1.19.1'); - ############################################################################### sub fastcgi_daemon {