fix: testing metrics for emqx_bridge_mqtt_SUITE

This commit is contained in:
Stefan Strigler 2023-01-16 12:07:24 +01:00
parent a19226326c
commit 67909f0b40
1 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ t_mqtt_conn_bridge_ingress_no_payload_template(_) ->
), ),
%% verify the metrics of the bridge %% verify the metrics of the bridge
{ok, 200, BridgeStr} = request(get, uri(["bridges", BridgeIDIngress]), []), {ok, 200, BridgeStr} = request(get, uri(["bridges", BridgeIDIngress, "metrics"]), []),
?assertMatch( ?assertMatch(
#{ #{
<<"metrics">> := #{<<"matched">> := 0, <<"received">> := 1}, <<"metrics">> := #{<<"matched">> := 0, <<"received">> := 1},
@ -421,7 +421,7 @@ t_mqtt_conn_bridge_egress_no_payload_template(_) ->
), ),
%% verify the metrics of the bridge %% verify the metrics of the bridge
{ok, 200, BridgeStr} = request(get, uri(["bridges", BridgeIDEgress]), []), {ok, 200, BridgeStr} = request(get, uri(["bridges", BridgeIDEgress, "metrics"]), []),
?assertMatch( ?assertMatch(
#{ #{
<<"metrics">> := #{<<"matched">> := 1, <<"success">> := 1, <<"failed">> := 0}, <<"metrics">> := #{<<"matched">> := 1, <<"success">> := 1, <<"failed">> := 0},