# HG changeset patch # User Maxim Dounin # Date 1679590208 -10800 # Node ID ebc6e5afe597c6fcbd662610c4ca80fe0ebe19b8 # Parent a68d1313c3fc973f45a837b92f59e3f6e842aa33 Tests: fixed proxy_ssl.t with LibreSSL and TLSv1.3. LibreSSL does not support session reuse with TLSv1.3. diff --git a/proxy_ssl.t b/proxy_ssl.t --- a/proxy_ssl.t +++ b/proxy_ssl.t @@ -46,6 +46,7 @@ http { location / { add_header X-Session $ssl_session_reused; + add_header X-Protocol $ssl_protocol; } } @@ -109,9 +110,16 @@ foreach my $name ('localhost') { like(http_get('/ssl'), qr/200 OK.*X-Session: \./s, 'ssl'); like(http_get('/ssl'), qr/200 OK.*X-Session: \./s, 'ssl 2'); like(http_get('/ssl_reuse'), qr/200 OK.*X-Session: \./s, 'ssl session new'); + +TODO: { +local $TODO = 'no TLS 1.3 sessions in LibreSSL' + if $t->has_module('LibreSSL') && http_get('/ssl') =~ /TLSv1.3/; + like(http_get('/ssl_reuse'), qr/200 OK.*X-Session: r/s, 'ssl session reused'); like(http_get('/ssl_reuse'), qr/200 OK.*X-Session: r/s, 'ssl session reused 2'); +} + SKIP: { skip 'long test', 1 unless $ENV{TEST_NGINX_UNSAFE};