test: fix mongodb tls suite

dryruns return error when local health check fails
This commit is contained in:
Zaiming (Stone) Shi 2022-01-03 14:34:58 +01:00
parent 57a466f372
commit f866488bc2
1 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ t_create_invalid_server_name(_Config) ->
create_mongo_auth_with_ssl_opts(
#{<<"server_name_indication">> => <<"authn-server-unknown-host">>,
<<"verify">> => <<"verify_peer">>}),
fun({ok, _}, Trace) ->
fun({error, _}, Trace) ->
?assertEqual(
[failed],
?projection(
@ -109,7 +109,7 @@ t_create_invalid_version(_Config) ->
#{<<"server_name_indication">> => <<"authn-server">>,
<<"verify">> => <<"verify_peer">>,
<<"versions">> => [<<"tlsv1.1">>]}),
fun({ok, _}, Trace) ->
fun({error, _}, Trace) ->
?assertEqual(
[failed],
?projection(
@ -118,7 +118,7 @@ t_create_invalid_version(_Config) ->
end).
%% docker-compose-mongo-single-tls.yaml:
%% docker-compose-mongo-single-tls.yaml:
%% --setParameter opensslCipherConfig='HIGH:!EXPORT:!aNULL:!DHE:!kDHE@STRENGTH'
t_invalid_ciphers(_Config) ->
@ -128,7 +128,7 @@ t_invalid_ciphers(_Config) ->
<<"verify">> => <<"verify_peer">>,
<<"versions">> => [<<"tlsv1.2">>],
<<"ciphers">> => [<<"DHE-RSA-AES256-GCM-SHA384">>]}),
fun({ok, _}, Trace) ->
fun({error, _}, Trace) ->
?assertEqual(
[failed],
?projection(