Mercurial > hg > nginx-tests
changeset 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 | c41ac260299f |
children | 520fb74cce4c |
files | js.t stream_js_buffer.t stream_js_exit.t stream_js_fetch.t stream_js_ngx.t |
diffstat | 5 files changed, 0 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/js.t Fri Nov 18 09:52:36 2022 -0800 +++ b/js.t Fri Dec 02 17:46:16 2022 -0800 @@ -284,10 +284,6 @@ like(http_get('/return_method?c=404'), qr/404 Not.*html/s, 'return error page'); like(http_get('/return_method?c=inv'), qr/ 500 /, 'return invalid'); -TODO: { -local $TODO = 'not yet' - unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.0'; - like(http_get('/type?path=variables.host'), qr/200 OK.*type: string$/s, 'variables type'); like(http_get('/type?path=rawVariables.host'), qr/200 OK.*type: buffer$/s, @@ -300,8 +296,6 @@ like(http_post('/request_body_cache'), qr/requestText:string requestBuffer:buffer$/s, 'request body cache'); -} - like(http_get('/var'), qr/variable=127.0.0.1/, 'r.variables'); like(http_get('/global'), qr/global=njs/, 'global code'); like(http_get('/log'), qr/200 OK/, 'r.log');
--- a/stream_js_buffer.t Fri Nov 18 09:52:36 2022 -0800 +++ b/stream_js_buffer.t Fri Dec 02 17:46:16 2022 -0800 @@ -159,10 +159,6 @@ ############################################################################### -TODO: { -local $TODO = 'not yet' - unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.0'; - is(stream('127.0.0.1:' . port(8081))->read(), 'buffer', 'var type'); is(stream('127.0.0.1:' . port(8082))->read(), 'true', 'binary var'); @@ -177,6 +173,5 @@ > 0, 'cb mismatch'); ok(index($t->read_file('error.log'), 'cb_mismatch2:mixing string and buffer') > 0, 'cb mismatch'); -} ###############################################################################
--- a/stream_js_exit.t Fri Nov 18 09:52:36 2022 -0800 +++ b/stream_js_exit.t Fri Dec 02 17:46:16 2022 -0800 @@ -105,9 +105,6 @@ ############################################################################### -local $TODO = 'not yet' - unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.2'; - stream('127.0.0.1:' . port(8081))->io('###'); stream('127.0.0.1:' . port(8082))->io('###');
--- a/stream_js_fetch.t Fri Nov 18 09:52:36 2022 -0800 +++ b/stream_js_fetch.t Fri Dec 02 17:46:16 2022 -0800 @@ -178,9 +178,6 @@ ############################################################################### -local $TODO = 'not yet' - unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.1'; - is(stream('127.0.0.1:' . port(8081))->io('###'), '', 'preread not enough'); is(stream('127.0.0.1:' . port(8081))->io("\xAB\xCDQZ##"), "\xAB\xCDQZ##", 'preread validated');
--- a/stream_js_ngx.t Fri Nov 18 09:52:36 2022 -0800 +++ b/stream_js_ngx.t Fri Dec 02 17:46:16 2022 -0800 @@ -83,10 +83,6 @@ ############################################################################### -TODO: { -local $TODO = 'not yet' - unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.5.0'; - is(stream('127.0.0.1:' . port(8081))->read(), 'OK', 'log var'); $t->stop(); @@ -95,6 +91,4 @@ like($t->read_file('error.log'), qr/\[warn\].*ngx.log:BAR/, 'ngx.log warn'); like($t->read_file('error.log'), qr/\[error\].*ngx.log:BAZ/, 'ngx.log err'); -} - ###############################################################################