Mercurial > hg > nginx-tests
comparison js_fetch.t @ 1727:bdefe70ae1a7
Tests: removed negative fetch API test for HTTPS schema.
HTTPS support is planned to be added.
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Thu, 02 Sep 2021 19:30:06 +0000 |
parents | 67adc5fd0548 |
children | 6966f099068d |
comparison
equal
deleted
inserted
replaced
1726:f66266cc82c8 | 1727:bdefe70ae1a7 |
---|---|
188 function broken(r) { | 188 function broken(r) { |
189 var tests = [ | 189 var tests = [ |
190 ['http://127.0.0.1:1/loc'], | 190 ['http://127.0.0.1:1/loc'], |
191 ['http://127.0.0.1:80800/loc'], | 191 ['http://127.0.0.1:80800/loc'], |
192 [Symbol.toStringTag], | 192 [Symbol.toStringTag], |
193 ['https://127.0.0.1:$p0/loc'], | |
194 ]; | 193 ]; |
195 | 194 |
196 return process_errors(r, tests); | 195 return process_errors(r, tests); |
197 } | 196 } |
198 | 197 |
399 like(http_get('/multi?throw=1'), qr/500/s, 'fetch destructor'); | 398 like(http_get('/multi?throw=1'), qr/500/s, 'fetch destructor'); |
400 is(get_json('/broken'), | 399 is(get_json('/broken'), |
401 '[' . | 400 '[' . |
402 '"connect failed",' . | 401 '"connect failed",' . |
403 '"failed to convert url arg",' . | 402 '"failed to convert url arg",' . |
404 '"invalid url",' . | 403 '"invalid url"]', 'fetch broken'); |
405 '"unsupported URL prefix"]', 'fetch broken'); | |
406 is(get_json('/broken_response'), | 404 is(get_json('/broken_response'), |
407 '["invalid fetch content length",' . | 405 '["invalid fetch content length",' . |
408 '"invalid fetch header",' . | 406 '"invalid fetch header",' . |
409 '"invalid fetch status line",' . | 407 '"invalid fetch status line",' . |
410 '"prematurely closed connection",' . | 408 '"prematurely closed connection",' . |