@@ -142,8 +142,9 @@ suite() ->
142142% % Testsuite setup/teardown.
143143% % -------------------------------------------------------------------
144144
145- init_per_suite (Config ) ->
145+ init_per_suite (Config0 ) ->
146146 rabbit_ct_helpers :log_environment (),
147+ Config = rabbit_ct_helpers :set_config (Config0 , {test_plugins , [rabbitmq_mqtt ]}),
147148 rabbit_ct_helpers :run_setup_steps (Config ).
148149
149150end_per_suite (Config ) ->
@@ -171,7 +172,7 @@ init_per_group(Group, Config0) ->
171172 Config ,
172173 rabbit_ct_broker_helpers :setup_steps () ++
173174 rabbit_ct_client_helpers :setup_steps ()),
174- util :enable_plugin (Config2 , rabbitmq_mqtt ) ,
175+ [ util :enable_plugin (Config2 , Plugin ) || Plugin <- ? config ( test_plugins , Config2 )] ,
175176 Config2 .
176177
177178end_per_group (G , Config )
@@ -922,7 +923,7 @@ subscription_options_persisted(Config) ->
922923 {<<" t2" >>, [{nl , false }, {rap , true }, {qos , 1 }]}]),
923924 unlink (C1 ),
924925 ok = rabbit_ct_broker_helpers :restart_node (Config , 0 ),
925- util :enable_plugin (Config , rabbitmq_mqtt ) ,
926+ [ util :enable_plugin (Config , Plugin ) || Plugin <- ? config ( test_plugins , Config )] ,
926927 C2 = connect (ClientId , Config , [{clean_start , false }]),
927928 ok = emqtt :publish (C2 , <<" t1" >>, <<" m1" >>),
928929 ok = emqtt :publish (C2 , <<" t2" >>, <<" m2" >>, [{retain , true }]),
@@ -1747,7 +1748,7 @@ will_delay_node_restart(Config) ->
17471748 timer :sleep (SleepMs ),
17481749 assert_nothing_received (),
17491750 ok = rabbit_ct_broker_helpers :start_node (Config , 0 ),
1750- util :enable_plugin (Config , rabbitmq_mqtt ) ,
1751+ [ util :enable_plugin (Config , Plugin ) || Plugin <- ? config ( test_plugins , Config )] ,
17511752 % % After node 0 restarts, we should receive the Will Message promptly on both nodes 0 and 1.
17521753 receive {publish , #{client_pid := Sub1 ,
17531754 payload := Payload }} -> ok
0 commit comments