test(gw): using ip_port in listener tests

This commit is contained in:
JianBo He 2022-07-26 11:40:52 +08:00
parent 53fda85c93
commit 38b5882dc8
1 changed files with 4 additions and 4 deletions

View File

@ -340,7 +340,7 @@ t_listeners_tcp(_) ->
LisConf = #{
name => <<"def">>,
type => <<"tcp">>,
bind => <<"61613">>
bind => <<"127.0.0.1:61613">>
},
{201, _} = request(post, "/gateway/stomp/listeners", LisConf),
{200, ConfResp} = request(get, "/gateway/stomp/listeners"),
@ -348,7 +348,7 @@ t_listeners_tcp(_) ->
{200, ConfResp1} = request(get, "/gateway/stomp/listeners/stomp:tcp:def"),
assert_confs(LisConf, ConfResp1),
LisConf2 = maps:merge(LisConf, #{bind => <<"61614">>}),
LisConf2 = maps:merge(LisConf, #{bind => <<"127.0.0.1:61614">>}),
{200, _} = request(
put,
"/gateway/stomp/listeners/stomp:tcp:def",
@ -369,7 +369,7 @@ t_listeners_authn(_) ->
#{
name => <<"def">>,
type => <<"tcp">>,
bind => <<"61613">>
bind => <<"127.0.0.1:61613">>
}
]
},
@ -405,7 +405,7 @@ t_listeners_authn_data_mgmt(_) ->
#{
name => <<"def">>,
type => <<"tcp">>,
bind => <<"61613">>
bind => <<"127.0.0.1:61613">>
}
]
},