fix(test): update testcases for emqx_gateway

This commit is contained in:
Shawn 2021-07-17 11:07:46 +08:00
parent f7f2523030
commit f68b8c4097
2 changed files with 5 additions and 2 deletions

View File

@ -113,7 +113,8 @@ init(ConnInfo = #{peername := {PeerHost, _},
Mountpoint = maps:get(mountpoint, Option, undefined),
ClientInfo = setting_peercert_infos(
Peercert,
#{ zone => undefined
#{ zone => default
, listener => mqtt_tcp
, protocol => stomp
, peerhost => PeerHost
, sockport => SockPort

View File

@ -245,7 +245,9 @@ init_state(Transport, Socket, Options) ->
peername => Peername,
sockname => Sockname,
peercert => Peercert,
conn_mod => ?MODULE
conn_mod => ?MODULE,
zone => default,
listener => mqtt_tcp
},
ActiveN = emqx_gateway_utils:active_n(Options),
%% TODO: RateLimit ? How ?