aboutsummaryrefslogtreecommitdiffstats
path: root/test/rfc7540_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2022-10-11 18:31:12 +0200
committerLoïc Hoguin <[email protected]>2022-10-11 18:31:12 +0200
commita4425a1d7db2d9e35f246aa078c324988ea395f0 (patch)
treee6afc44a9f84de9e64dda75f589c7fda303825a6 /test/rfc7540_SUITE.erl
parent2e3f2c1474350199ec1f9379c2dbe60627493962 (diff)
downloadgun-a4425a1d7db2d9e35f246aa078c324988ea395f0.tar.gz
gun-a4425a1d7db2d9e35f246aa078c324988ea395f0.tar.bz2
gun-a4425a1d7db2d9e35f246aa078c324988ea395f0.zip
Update tests for OTP-25+
Diffstat (limited to 'test/rfc7540_SUITE.erl')
-rw-r--r--test/rfc7540_SUITE.erl16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/rfc7540_SUITE.erl b/test/rfc7540_SUITE.erl
index 2423f24..159d036 100644
--- a/test/rfc7540_SUITE.erl
+++ b/test/rfc7540_SUITE.erl
@@ -214,7 +214,7 @@ do_authority_port(Transport0, DefaultPort, AuthorityHeaderPort) ->
end),
{ok, ConnPid} = gun:open("localhost", OriginPort, #{
transport => Transport0,
- tls_opts => [{verify, verify_none}],
+ tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}],
protocols => [http2]
}),
{ok, http2} = gun:await_up(ConnPid),
@@ -508,7 +508,7 @@ do_connect_http(OriginScheme, OriginTransport, OriginProtocol, ProxyScheme, Prox
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']}],
protocols => [http2]
}),
{ok, http2} = gun:await_up(ConnPid),
@@ -517,7 +517,7 @@ do_connect_http(OriginScheme, OriginTransport, OriginProtocol, ProxyScheme, Prox
host => "localhost",
port => OriginPort,
transport => OriginTransport,
- tls_opts => [{verify, verify_none}],
+ tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}],
protocols => [OriginProtocol]
}),
{request, #{
@@ -613,7 +613,7 @@ do_connect_cowboy(_OriginScheme, OriginTransport, OriginProtocol, _ProxyScheme,
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']}],
protocols => [http2]
}),
{ok, http2} = gun:await_up(ConnPid),
@@ -622,7 +622,7 @@ do_connect_cowboy(_OriginScheme, OriginTransport, OriginProtocol, _ProxyScheme,
host => "localhost",
port => OriginPort,
transport => OriginTransport,
- tls_opts => [{verify, verify_none}],
+ tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}],
protocols => [OriginProtocol]
}),
{request, #{
@@ -710,7 +710,7 @@ do_connect_via_multiple_proxies(OriginTransport, OriginProtocol,
%% First proxy.
{ok, ConnPid} = gun:open("localhost", Proxy1Port, #{
transport => Proxy1Transport,
- tls_opts => [{verify, verify_none}],
+ tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}],
protocols => [http2]
}),
{ok, http2} = gun:await_up(ConnPid),
@@ -720,7 +720,7 @@ do_connect_via_multiple_proxies(OriginTransport, OriginProtocol,
host => "localhost",
port => Proxy2Port,
transport => Proxy2Transport,
- tls_opts => [{verify, verify_none}],
+ tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}],
protocols => [Proxy2Protocol]
}, []),
Authority1 = iolist_to_binary(["localhost:", integer_to_binary(Proxy2Port)]),
@@ -735,7 +735,7 @@ do_connect_via_multiple_proxies(OriginTransport, OriginProtocol,
host => "localhost",
port => OriginPort,
transport => OriginTransport,
- tls_opts => [{verify, verify_none}],
+ tls_opts => [{verify, verify_none}, {versions, ['tlsv1.2']}],
protocols => [OriginProtocol]
}, [], #{tunnel => StreamRef1}),
Authority2 = iolist_to_binary(["localhost:", integer_to_binary(OriginPort)]),