test: earse license after cli ct test
This commit is contained in:
parent
a55e50f1d7
commit
f4549d280b
|
@ -24,10 +24,15 @@ end_per_suite(_) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
init_per_testcase(_Case, Config) ->
|
init_per_testcase(_Case, Config) ->
|
||||||
|
ok = persistent_term:put(
|
||||||
|
emqx_license_test_pubkey,
|
||||||
|
emqx_license_test_lib:public_key_pem()
|
||||||
|
),
|
||||||
{ok, _} = emqx_cluster_rpc:start_link(node(), emqx_cluster_rpc, 1000),
|
{ok, _} = emqx_cluster_rpc:start_link(node(), emqx_cluster_rpc, 1000),
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
end_per_testcase(_Case, _Config) ->
|
end_per_testcase(_Case, _Config) ->
|
||||||
|
persistent_term:erase(emqx_license_test_pubkey),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
set_special_configs(emqx_license) ->
|
set_special_configs(emqx_license) ->
|
||||||
|
@ -55,10 +60,6 @@ t_update(_Config) ->
|
||||||
_ = emqx_license_cli:license(["update", "Invalid License Value"]).
|
_ = emqx_license_cli:license(["update", "Invalid License Value"]).
|
||||||
|
|
||||||
t_conf_update(_Config) ->
|
t_conf_update(_Config) ->
|
||||||
ok = persistent_term:put(
|
|
||||||
emqx_license_test_pubkey,
|
|
||||||
emqx_license_test_lib:public_key_pem()
|
|
||||||
),
|
|
||||||
LicenseKey = emqx_license_test_lib:make_license(#{max_connections => "123"}),
|
LicenseKey = emqx_license_test_lib:make_license(#{max_connections => "123"}),
|
||||||
Conf = #{
|
Conf = #{
|
||||||
<<"connection_high_watermark">> => <<"50%">>,
|
<<"connection_high_watermark">> => <<"50%">>,
|
||||||
|
|
Loading…
Reference in New Issue