From: Amaury Denoyelle Date: Fri, 12 Feb 2021 14:22:43 +0000 (+0100) Subject: REGTESTS: fix sni used in http_reuse_conn_hash for libressl 3.3.0 X-Git-Tag: v2.4-dev8~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f583be822d0a7b6834cff6ef9f7ab5fda06cc2a;p=thirdparty%2Fhaproxy.git REGTESTS: fix sni used in http_reuse_conn_hash for libressl 3.3.0 libressl 3.3.0 is stricter on the sni field and fails if it contains illegal characters such as the underscore. Replace sni field with proper name to pass the test on the CI environment. --- diff --git a/reg-tests/connection/http_reuse_conn_hash.vtc b/reg-tests/connection/http_reuse_conn_hash.vtc index 7cbf3be970..58118d27dc 100644 --- a/reg-tests/connection/http_reuse_conn_hash.vtc +++ b/reg-tests/connection/http_reuse_conn_hash.vtc @@ -49,25 +49,25 @@ haproxy h1 -conf { client c_sni -connect ${h1_feS_sni_sock} { # first request txreq \ - -hdr "x-sni: custom_sni" + -hdr "x-sni: www.custom.com" rxresp expect resp.http.http_first_request == "1" # second request with same sni, connection must be reused txreq \ - -hdr "x-sni: custom_sni" + -hdr "x-sni: www.custom.com" rxresp expect resp.http.http_first_request == "0" # third request with a different sni, a new connection must be used txreq \ - -hdr "x-sni: custom_sni_2" + -hdr "x-sni: www.custom2.com" rxresp expect resp.http.http_first_request == "1" # fourth request, reuse sni2 txreq \ - -hdr "x-sni: custom_sni_2" + -hdr "x-sni: www.custom2.com" rxresp expect resp.http.http_first_request == "0" } -run