|
@@ -902,16 +902,15 @@ t_consume_ok(Config) ->
|
|
|
?assertEqual(3, emqx_resource_metrics:received_get(ResourceId))
|
|
?assertEqual(3, emqx_resource_metrics:received_get(ResourceId))
|
|
|
),
|
|
),
|
|
|
|
|
|
|
|
- %% FIXME: uncomment after API spec is un-hidden...
|
|
|
|
|
- %% %% Check that the bridge probe API doesn't leak atoms.
|
|
|
|
|
- %% ProbeRes0 = probe_bridge_api(Config),
|
|
|
|
|
- %% ?assertMatch({ok, {{_, 204, _}, _Headers, _Body}}, ProbeRes0),
|
|
|
|
|
- %% AtomsBefore = erlang:system_info(atom_count),
|
|
|
|
|
- %% %% Probe again; shouldn't have created more atoms.
|
|
|
|
|
- %% ProbeRes1 = probe_bridge_api(Config),
|
|
|
|
|
- %% ?assertMatch({ok, {{_, 204, _}, _Headers, _Body}}, ProbeRes1),
|
|
|
|
|
- %% AtomsAfter = erlang:system_info(atom_count),
|
|
|
|
|
- %% ?assertEqual(AtomsBefore, AtomsAfter),
|
|
|
|
|
|
|
+ %% Check that the bridge probe API doesn't leak atoms.
|
|
|
|
|
+ ProbeRes0 = probe_bridge_api(Config),
|
|
|
|
|
+ ?assertMatch({ok, {{_, 204, _}, _Headers, _Body}}, ProbeRes0),
|
|
|
|
|
+ AtomsBefore = erlang:system_info(atom_count),
|
|
|
|
|
+ %% Probe again; shouldn't have created more atoms.
|
|
|
|
|
+ ProbeRes1 = probe_bridge_api(Config),
|
|
|
|
|
+ ?assertMatch({ok, {{_, 204, _}, _Headers, _Body}}, ProbeRes1),
|
|
|
|
|
+ AtomsAfter = erlang:system_info(atom_count),
|
|
|
|
|
+ ?assertEqual(AtomsBefore, AtomsAfter),
|
|
|
|
|
|
|
|
assert_non_received_metrics(BridgeName),
|
|
assert_non_received_metrics(BridgeName),
|
|
|
?block_until(
|
|
?block_until(
|
|
@@ -1027,8 +1026,8 @@ t_on_get_status(Config) ->
|
|
|
?assertMatch({ok, connecting}, emqx_resource_manager:health_check(ResourceId)),
|
|
?assertMatch({ok, connecting}, emqx_resource_manager:health_check(ResourceId)),
|
|
|
ok.
|
|
ok.
|
|
|
|
|
|
|
|
-t_create_via_http_api(_Config) ->
|
|
|
|
|
- ct:comment("FIXME: implement after API specs are un-hidden in e5.2.0..."),
|
|
|
|
|
|
|
+t_create_update_via_http_api(Config) ->
|
|
|
|
|
+ emqx_bridge_testlib:t_create_via_http(Config),
|
|
|
ok.
|
|
ok.
|
|
|
|
|
|
|
|
t_multiple_topic_mappings(Config) ->
|
|
t_multiple_topic_mappings(Config) ->
|