From 2170dafe7a36ca380520c9140008c27ceb4857d0 Mon Sep 17 00:00:00 2001 From: Jim Brandt Date: Wed, 30 Aug 2023 15:52:48 -0400 Subject: [PATCH] Add test for deleting a disabled queue via REST 2 --- t/rest2/queues.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/rest2/queues.t b/t/rest2/queues.t index 25c2b06df92..77e0c554ffb 100644 --- a/t/rest2/queues.t +++ b/t/rest2/queues.t @@ -192,6 +192,12 @@ my $queue_url; my $content = $mech->json_response; is($content->{Name}, 'Bugs'); is($content->{Disabled}, 1); + + diag 'Try to call delete on a disabled queue'; + $res = $mech->delete($queue_url, + 'Authorization' => $auth, + ); + is($res->code, 204); } # Queue create