test: fix emqx_ocsp_cache_SUITE error message match pattern
This commit is contained in:
parent
19051f639b
commit
fa85c3061b
|
@ -915,10 +915,8 @@ do_t_validations(_Config) ->
|
||||||
#{<<"code">> := <<"BAD_REQUEST">>, <<"message">> := MsgRaw3} =
|
#{<<"code">> := <<"BAD_REQUEST">>, <<"message">> := MsgRaw3} =
|
||||||
emqx_utils_json:decode(ResRaw3, [return_maps]),
|
emqx_utils_json:decode(ResRaw3, [return_maps]),
|
||||||
%% we can't remove certfile now, because it has default value.
|
%% we can't remove certfile now, because it has default value.
|
||||||
?assertMatch(
|
?assertMatch({match, _}, re:run(MsgRaw3, <<"enoent">>)),
|
||||||
<<"{bad_ssl_config,#{file_read => enoent,pem_check => invalid_pem", _/binary>>,
|
?assertMatch({match, _}, re:run(MsgRaw3, <<"invalid_pem">>)),
|
||||||
MsgRaw3
|
|
||||||
),
|
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
t_unknown_error_fetching_ocsp_response(_Config) ->
|
t_unknown_error_fetching_ocsp_response(_Config) ->
|
||||||
|
|
Loading…
Reference in New Issue