comparison h2_ssl.t @ 1743:2318ed01ce53

Tests: skip ALPN rejection tests with too old LibreSSL.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 21 Oct 2021 20:18:01 +0300
parents 3408029c09f5
children 38bd7e75fe69
comparison
equal deleted inserted replaced
1742:7bfa47410cc0 1743:2318ed01ce53
91 plan(skip_all => 'no ALPN negotiation') unless defined getconn(); 91 plan(skip_all => 'no ALPN negotiation') unless defined getconn();
92 $t->plan(3); 92 $t->plan(3);
93 93
94 ############################################################################### 94 ###############################################################################
95 95
96 SKIP: {
97 $t->{_configure_args} =~ /LibreSSL ([\d\.]+)/;
98 skip 'LibreSSL too old', 1 if defined $1 and $1 lt '3.4.0';
99
96 TODO: { 100 TODO: {
97 local $TODO = 'not yet' unless $t->has_version('1.21.4'); 101 local $TODO = 'not yet' unless $t->has_version('1.21.4');
98 102
99 ok(!get_ssl_socket(['unknown']), 'alpn rejected'); 103 ok(!get_ssl_socket(['unknown']), 'alpn rejected');
104
105 }
100 106
101 } 107 }
102 108
103 like(http_get('/', socket => get_ssl_socket(['http/1.1'])), 109 like(http_get('/', socket => get_ssl_socket(['http/1.1'])),
104 qr/200 OK/, 'alpn to HTTP/1.1 fallback'); 110 qr/200 OK/, 'alpn to HTTP/1.1 fallback');