chore: un-hide ocsp stapling config

Undoing https://github.com/emqx/emqx/pull/10160
This commit is contained in:
Thales Macedo Garitezi 2023-04-18 10:19:09 -03:00
parent dc452deaf0
commit 3138e2b3a1
2 changed files with 7 additions and 4 deletions

View File

@ -2323,8 +2323,6 @@ server_ssl_opts_schema(Defaults, IsRanchListener) ->
ref("ocsp"),
#{
required => false,
%% TODO: remove after e5.0.2
importance => ?IMPORTANCE_HIDDEN,
validator => fun ocsp_inner_validator/1
}
)},
@ -2333,6 +2331,7 @@ server_ssl_opts_schema(Defaults, IsRanchListener) ->
boolean(),
#{
default => false,
importance => ?IMPORTANCE_MEDIUM,
desc => ?DESC("server_ssl_opts_schema_enable_crl_check")
}
)}

View File

@ -677,8 +677,12 @@ do_t_update_listener(Config) ->
%% no ocsp at first
ListenerId = "ssl:default",
{ok, {{_, 200, _}, _, ListenerData0}} = get_listener_via_api(ListenerId),
?assertEqual(
undefined,
?assertMatch(
#{
<<"enable_ocsp_stapling">> := false,
<<"refresh_http_timeout">> := _,
<<"refresh_interval">> := _
},
emqx_utils_maps:deep_get([<<"ssl_options">>, <<"ocsp">>], ListenerData0, undefined)
),
assert_no_http_get(),