Skip to content

Commit c0b118a

Browse files
committed
Shovel tests: test disk alarm
1 parent fdec97d commit c0b118a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

deps/rabbitmq_shovel/test/shovel_dynamic_SUITE.erl

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ tests() ->
108108
application_properties,
109109
delete_src_queue,
110110
shovel_status,
111-
change_definition
111+
change_definition,
112+
disk_alarm
112113
].
113114

114115
%% -------------------------------------------------------------------
@@ -589,6 +590,20 @@ change_definition(Config) ->
589590
amqp10_expect_empty(Sess, Dest2)
590591
end).
591592

593+
disk_alarm(Config) ->
594+
Src = ?config(srcq, Config),
595+
Dest = ?config(destq, Config),
596+
with_amqp10_session(Config,
597+
fun (Sess) ->
598+
ShovelArgs = ?config(shovel_args, Config),
599+
amqp10_publish(Sess, Src, <<"hello">>, 10),
600+
rabbit_ct_broker_helpers:set_alarm(Config, 0, disk),
601+
set_param(Config, ?PARAM, ShovelArgs),
602+
amqp10_expect_empty(Sess, Dest),
603+
rabbit_ct_broker_helpers:clear_alarm(Config, 0, disk),
604+
amqp10_expect_count(Sess, Dest, 10)
605+
end).
606+
592607
%%----------------------------------------------------------------------------
593608
maybe_skip_local_protocol(Config) ->
594609
[Node] = rabbit_ct_broker_helpers:get_node_configs(Config, nodename),

0 commit comments

Comments
 (0)