@@ -142,8 +142,9 @@ suite() ->
142
142
% % Testsuite setup/teardown.
143
143
% % -------------------------------------------------------------------
144
144
145
- init_per_suite (Config ) ->
145
+ init_per_suite (Config0 ) ->
146
146
rabbit_ct_helpers :log_environment (),
147
+ Config = rabbit_ct_helpers :set_config (Config0 , {test_plugins , [rabbitmq_mqtt ]}),
147
148
rabbit_ct_helpers :run_setup_steps (Config ).
148
149
149
150
end_per_suite (Config ) ->
@@ -171,7 +172,7 @@ init_per_group(Group, Config0) ->
171
172
Config ,
172
173
rabbit_ct_broker_helpers :setup_steps () ++
173
174
rabbit_ct_client_helpers :setup_steps ()),
174
- util :enable_plugin (Config2 , rabbitmq_mqtt ) ,
175
+ [ util :enable_plugin (Config2 , Plugin ) || Plugin <- ? config ( test_plugins , Config2 )] ,
175
176
Config2 .
176
177
177
178
end_per_group (G , Config )
@@ -922,7 +923,7 @@ subscription_options_persisted(Config) ->
922
923
{<<" t2" >>, [{nl , false }, {rap , true }, {qos , 1 }]}]),
923
924
unlink (C1 ),
924
925
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 )] ,
926
927
C2 = connect (ClientId , Config , [{clean_start , false }]),
927
928
ok = emqtt :publish (C2 , <<" t1" >>, <<" m1" >>),
928
929
ok = emqtt :publish (C2 , <<" t2" >>, <<" m2" >>, [{retain , true }]),
@@ -1747,7 +1748,7 @@ will_delay_node_restart(Config) ->
1747
1748
timer :sleep (SleepMs ),
1748
1749
assert_nothing_received (),
1749
1750
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 )] ,
1751
1752
% % After node 0 restarts, we should receive the Will Message promptly on both nodes 0 and 1.
1752
1753
receive {publish , #{client_pid := Sub1 ,
1753
1754
payload := Payload }} -> ok
0 commit comments