diff options
author | Loïc Hoguin <[email protected]> | 2022-10-11 18:31:12 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2022-10-11 18:31:12 +0200 |
commit | a4425a1d7db2d9e35f246aa078c324988ea395f0 (patch) | |
tree | e6afc44a9f84de9e64dda75f589c7fda303825a6 /test/rfc7231_SUITE.erl | |
parent | 2e3f2c1474350199ec1f9379c2dbe60627493962 (diff) | |
download | gun-a4425a1d7db2d9e35f246aa078c324988ea395f0.tar.gz gun-a4425a1d7db2d9e35f246aa078c324988ea395f0.tar.bz2 gun-a4425a1d7db2d9e35f246aa078c324988ea395f0.zip |
Update tests for OTP-25+
Diffstat (limited to 'test/rfc7231_SUITE.erl')
-rw-r--r-- | test/rfc7231_SUITE.erl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/rfc7231_SUITE.erl b/test/rfc7231_SUITE.erl index e07ec04..c274ecb 100644 --- a/test/rfc7231_SUITE.erl +++ b/test/rfc7231_SUITE.erl @@ -148,14 +148,14 @@ do_connect_http(OriginScheme, OriginTransport, ProxyTransport) -> Authority = iolist_to_binary(["localhost:", integer_to_binary(OriginPort)]), {ok, ConnPid} = gun:open("localhost", ProxyPort, #{ transport => ProxyTransport, - tls_opts => [{verify, verify_none}] + tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}] }), {ok, http} = gun:await_up(ConnPid), StreamRef = gun:connect(ConnPid, #{ host => "localhost", port => OriginPort, transport => OriginTransport, - tls_opts => [{verify, verify_none}] + tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}] }), {request, <<"CONNECT">>, Authority, 'HTTP/1.1', _} = receive_from(ProxyPid), {response, fin, 200, _} = gun:await(ConnPid, StreamRef), @@ -207,14 +207,14 @@ do_connect_h2(OriginScheme, OriginTransport, ProxyTransport) -> Authority = iolist_to_binary(["localhost:", integer_to_binary(OriginPort)]), {ok, ConnPid} = gun:open("localhost", ProxyPort, #{ transport => ProxyTransport, - tls_opts => [{verify, verify_none}] + tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}] }), {ok, http} = gun:await_up(ConnPid), StreamRef = gun:connect(ConnPid, #{ host => "localhost", port => OriginPort, transport => OriginTransport, - tls_opts => [{verify, verify_none}], + tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}], protocols => [http2] }), {request, <<"CONNECT">>, Authority, 'HTTP/1.1', _} = receive_from(ProxyPid), @@ -256,7 +256,7 @@ do_connect_through_multiple_proxies(OriginScheme, OriginTransport, ProxiesTransp {ok, Proxy2Pid, Proxy2Port} = do_proxy_start(ProxiesTransport), {ok, ConnPid} = gun:open("localhost", Proxy1Port, #{ transport => ProxiesTransport, - tls_opts => [{verify, verify_none}] + tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}] }), {ok, http} = gun:await_up(ConnPid), Authority1 = iolist_to_binary(["localhost:", integer_to_binary(Proxy2Port)]), @@ -264,7 +264,7 @@ do_connect_through_multiple_proxies(OriginScheme, OriginTransport, ProxiesTransp host => "localhost", port => Proxy2Port, transport => ProxiesTransport, - tls_opts => [{verify, verify_none}] + tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}] }), {request, <<"CONNECT">>, Authority1, 'HTTP/1.1', _} = receive_from(Proxy1Pid), {response, fin, 200, _} = gun:await(ConnPid, StreamRef1), @@ -274,7 +274,7 @@ do_connect_through_multiple_proxies(OriginScheme, OriginTransport, ProxiesTransp host => "localhost", port => OriginPort, transport => OriginTransport, - tls_opts => [{verify, verify_none}] + tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}] }, [], #{tunnel => StreamRef1}), {request, <<"CONNECT">>, Authority2, 'HTTP/1.1', _} = receive_from(Proxy2Pid), {response, fin, 200, _} = gun:await(ConnPid, StreamRef2), |