@@ -141,8 +141,9 @@ suite() ->
141
141
% % Testsuite setup/teardown.
142
142
% % -------------------------------------------------------------------
143
143
144
- init_per_suite (Config ) ->
144
+ init_per_suite (Config0 ) ->
145
145
rabbit_ct_helpers :log_environment (),
146
+ Config = rabbit_ct_helpers :set_config (Config0 , {test_plugins , [rabbitmq_mqtt ]}),
146
147
rabbit_ct_helpers :run_setup_steps (Config ).
147
148
148
149
end_per_suite (Config ) ->
@@ -170,7 +171,7 @@ init_per_group(Group, Config0) ->
170
171
Config ,
171
172
rabbit_ct_broker_helpers :setup_steps () ++
172
173
rabbit_ct_client_helpers :setup_steps ()),
173
- util :enable_plugin (Config2 , rabbitmq_mqtt ) ,
174
+ [ util :enable_plugin (Config2 , Plugin ) || Plugin <- ? config ( test_plugins , Config2 )] ,
174
175
Config2 .
175
176
176
177
end_per_group (G , Config )
@@ -894,7 +895,7 @@ subscription_options_persisted(Config) ->
894
895
{<<" t2" >>, [{nl , false }, {rap , true }, {qos , 1 }]}]),
895
896
unlink (C1 ),
896
897
ok = rabbit_ct_broker_helpers :restart_node (Config , 0 ),
897
- util :enable_plugin (Config , rabbitmq_mqtt ) ,
898
+ [ util :enable_plugin (Config , Plugin ) || Plugin <- ? config ( test_plugins , Config )] ,
898
899
C2 = connect (ClientId , Config , [{clean_start , false }]),
899
900
ok = emqtt :publish (C2 , <<" t1" >>, <<" m1" >>),
900
901
ok = emqtt :publish (C2 , <<" t2" >>, <<" m2" >>, [{retain , true }]),
@@ -1719,7 +1720,7 @@ will_delay_node_restart(Config) ->
1719
1720
timer :sleep (SleepMs ),
1720
1721
assert_nothing_received (),
1721
1722
ok = rabbit_ct_broker_helpers :start_node (Config , 0 ),
1722
- util :enable_plugin (Config , rabbitmq_mqtt ) ,
1723
+ [ util :enable_plugin (Config , Plugin ) || Plugin <- ? config ( test_plugins , Config )] ,
1723
1724
% % After node 0 restarts, we should receive the Will Message promptly on both nodes 0 and 1.
1724
1725
receive {publish , #{client_pid := Sub1 ,
1725
1726
payload := Payload }} -> ok
0 commit comments