comparison h2_http2.t @ 1920:79ca9ab75310

Tests: fixed h2_http2.t when nginx compiled without ALPN support. ALPN support is only available with OpenSSL 1.0.2 or newer.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 12 Jul 2023 02:40:15 +0300
parents 034c9121b9d1
children 07656d303199
comparison
equal deleted inserted replaced
1919:161dc73812b3 1920:79ca9ab75310
125 125
126 ok(!get_ssl_socket(8443, 'disabled'), 'sni to disabled'); 126 ok(!get_ssl_socket(8443, 'disabled'), 'sni to disabled');
127 127
128 } 128 }
129 129
130 TODO: {
131 local $TODO = 'OpenSSL too old'
132 if $t->has_module('OpenSSL')
133 and not $t->has_feature('openssl:1.0.2');
134
130 is(get_https(8443, 'http2'), 200, 'host to enabled'); 135 is(get_https(8443, 'http2'), 200, 'host to enabled');
131 is(get_https(8443, 'disabled', 'http2'), 421, 'host to disabled'); 136 is(get_https(8443, 'disabled', 'http2'), 421, 'host to disabled');
137
138 }
132 139
133 # make sure HTTP/2 can be enabled selectively on virtual servers 140 # make sure HTTP/2 can be enabled selectively on virtual servers
134 141
135 TODO: { 142 TODO: {
136 local $TODO = 'OpenSSL too old' 143 local $TODO = 'OpenSSL too old'