Skip to content

Commit 663fc98

Browse files
committed
Change leader_health_check command scope from queues to diagnostics
1 parent ebffd7d commit 663fc98

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/queues/commands/leader_health_check_command.ex renamed to deps/rabbitmq_cli/lib/rabbitmq/cli/diagnostics/commands/leader_health_check_command.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
##
55
## Copyright (c) 2007-2024 VMware, Inc. or its affiliates. All rights reserved.
66

7-
defmodule RabbitMQ.CLI.Queues.Commands.LeaderHealthCheckCommand do
7+
defmodule RabbitMQ.CLI.Diagnostics.Commands.LeaderHealthCheckCommand do
88
alias RabbitMQ.CLI.Core.DocGuide
99

1010
@behaviour RabbitMQ.CLI.CommandBehaviour
@@ -13,13 +13,12 @@ defmodule RabbitMQ.CLI.Queues.Commands.LeaderHealthCheckCommand do
1313

1414
def switches(), do: [global: :boolean]
1515

16-
def scopes(), do: [:queues]
16+
def scopes(), do: [:diagnostics]
1717

1818
def merge_defaults(args, opts) do
1919
{args, Map.merge(%{global: false, vhost: "/"}, opts)}
2020
end
2121

22-
use RabbitMQ.CLI.Core.AcceptsDefaultSwitchesAndTimeout
2322
use RabbitMQ.CLI.Core.AcceptsOnePositionalArgument
2423
use RabbitMQ.CLI.Core.RequiresRabbitAppRunning
2524

deps/rabbitmq_cli/test/queues/leader_health_check_test.exs renamed to deps/rabbitmq_cli/test/diagnostics/leader_health_check_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
##
55
## Copyright (c) 2007-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
66

7-
defmodule RabbitMQ.CLI.Queues.Commands.LeaderHealthCheckCommandTest do
7+
defmodule LeaderHealthCheckCommandTest do
88
use ExUnit.Case, async: false
99
import TestHelper
1010

11-
@command RabbitMQ.CLI.Queues.Commands.LeaderHealthCheckCommand
11+
@command RabbitMQ.CLI.Diagnostics.Commands.LeaderHealthCheckCommand
1212

1313
setup_all do
1414
RabbitMQ.CLI.Core.Distribution.start()

0 commit comments

Comments
 (0)