chore: rename _probe_ to t_probe_

This commit is contained in:
zhongwencool 2024-02-27 17:18:19 +08:00
parent c67f2130f2
commit 54c542c795
3 changed files with 5 additions and 6 deletions

View File

@ -98,9 +98,6 @@
-define(ROOT_KEY, bridges).
%% See `hocon_tconf`
-define(MAP_KEY_RE, <<"^[A-Za-z0-9]+[A-Za-z0-9-_]*$">>).
load() ->
Bridges = emqx:get_config([?ROOT_KEY], #{}),
emqx_utils:pforeach(

View File

@ -1611,12 +1611,12 @@ split_and_validate_bridge_v1_config(BridgeV1Type, BridgeName, RawConf, PreviousR
}
},
try
hocon_tconf:check_plain(
_ = hocon_tconf:check_plain(
emqx_connector_schema,
NewFakeConnectorConfig,
#{atom_key => false, required => false}
),
hocon_tconf:check_plain(
_ = hocon_tconf:check_plain(
emqx_bridge_v2_schema,
NewFakeBridgeV2Config,
#{atom_key => false, required => false}

View File

@ -154,7 +154,9 @@
%% boolean
-define(START_AFTER_CREATED, true).
-define(TEST_ID_PREFIX, "probe__").
%% Keep this test_id_prefix is match "^[A-Za-z0-9]+[A-Za-z0-9-_]*$".
%% See `hocon_tconf`
-define(TEST_ID_PREFIX, "t_probe_").
-define(RES_METRICS, resource_metrics).
-define(RESOURCE_ALLOCATION_TAB, emqx_resource_allocations).