Mercurial > hg > nginx-tests
changeset 1998:6b3b31149551
Tests: removed remnants of "listen ... http2" usage.
The only remaining test which uses "listen ... http2" is h2_http2.t
now, which is specifically to test that this form still works.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 09 Aug 2024 05:21:04 +0300 |
parents | d2d00eea7b3d |
children | 15f538440a77 |
files | h2_ssl.t h2_ssl_proxy_cache.t h2_ssl_proxy_protocol.t h2_ssl_variables.t |
diffstat | 4 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/h2_ssl.t Fri Aug 09 05:18:52 2024 +0300 +++ b/h2_ssl.t Fri Aug 09 05:21:04 2024 +0300 @@ -41,9 +41,11 @@ %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:8080 http2 ssl; + listen 127.0.0.1:8080 ssl; server_name localhost; + http2 on; + ssl_certificate_key localhost.key; ssl_certificate localhost.crt; @@ -77,9 +79,7 @@ $t->write_file('tbig.html', join('', map { sprintf "XX%06dXX", $_ } (1 .. 500000))); -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; plan(skip_all => 'no ALPN negotiation') unless defined getconn(); $t->plan(4);
--- a/h2_ssl_proxy_cache.t Fri Aug 09 05:18:52 2024 +0300 +++ b/h2_ssl_proxy_cache.t Fri Aug 09 05:21:04 2024 +0300 @@ -42,9 +42,11 @@ proxy_cache_path %%TESTDIR%%/cache keys_zone=NAME:1m; server { - listen 127.0.0.1:8080 http2 ssl sndbuf=32k; + listen 127.0.0.1:8080 ssl sndbuf=32k; server_name localhost; + http2 on; + ssl_certificate_key localhost.key; ssl_certificate localhost.crt; @@ -88,9 +90,7 @@ $t->write_file('tbig.html', join('', map { sprintf "XX%06dXX", $_ } (1 .. 500000))); -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; plan(skip_all => 'no ALPN negotiation') unless defined getconn(port(8080)); $t->plan(1);
--- a/h2_ssl_proxy_protocol.t Fri Aug 09 05:18:52 2024 +0300 +++ b/h2_ssl_proxy_protocol.t Fri Aug 09 05:21:04 2024 +0300 @@ -42,9 +42,11 @@ %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:8080 proxy_protocol http2 ssl; + listen 127.0.0.1:8080 proxy_protocol ssl; server_name localhost; + http2 on; + ssl_certificate_key localhost.key; ssl_certificate localhost.crt; @@ -79,9 +81,7 @@ $t->write_file('t.html', 'SEE-THIS'); -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; ###############################################################################
--- a/h2_ssl_variables.t Fri Aug 09 05:18:52 2024 +0300 +++ b/h2_ssl_variables.t Fri Aug 09 05:21:04 2024 +0300 @@ -39,9 +39,11 @@ %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:8080 http2 ssl; + listen 127.0.0.1:8080 ssl; server_name localhost; + http2 on; + ssl_certificate_key localhost.key; ssl_certificate localhost.crt; @@ -80,9 +82,7 @@ or die "Can't create certificate for $name: $!\n"; } -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; ###############################################################################