mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Don't force verify client cert in tests
This makes req_SUITE's cert_undefined test work again.
This commit is contained in:
parent
22adc4de51
commit
b2a16a2ee6
1 changed files with 2 additions and 2 deletions
|
@ -27,13 +27,13 @@ init_http(Ref, ProtoOpts, Config) ->
|
|||
|
||||
init_https(Ref, ProtoOpts, Config) ->
|
||||
Opts = ct_helper:get_certs_from_ets(),
|
||||
{ok, _} = cowboy:start_tls(Ref, Opts ++ [{port, 0}], ProtoOpts),
|
||||
{ok, _} = cowboy:start_tls(Ref, Opts ++ [{port, 0}, {verify, verify_none}], ProtoOpts),
|
||||
Port = ranch:get_port(Ref),
|
||||
[{ref, Ref}, {type, ssl}, {protocol, http}, {port, Port}, {opts, Opts}|Config].
|
||||
|
||||
init_http2(Ref, ProtoOpts, Config) ->
|
||||
Opts = ct_helper:get_certs_from_ets(),
|
||||
{ok, _} = cowboy:start_tls(Ref, Opts ++ [{port, 0}], ProtoOpts),
|
||||
{ok, _} = cowboy:start_tls(Ref, Opts ++ [{port, 0}, {verify, verify_none}], ProtoOpts),
|
||||
Port = ranch:get_port(Ref),
|
||||
[{ref, Ref}, {type, ssl}, {protocol, http2}, {port, Port}, {opts, Opts}|Config].
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue