This commit is contained in:
Michael Klishin 2017-12-08 17:55:50 -08:00
parent e2fefb3b84
commit f99245c5b6
2 changed files with 2 additions and 2 deletions

View File

@ -51,6 +51,6 @@ defmodule RabbitMQ.CLI.Ctl.Commands.SetParameterCommand do
def usage, do: "set_parameter [-p <vhost>] <component_name> <name> <value>"
def banner([component_name, name, value], %{vhost: vhost}) do
"Setting runtime parameter \"#{component_name}\" for component \"#{name}\" to \"#{value}\" for vhost \"#{vhost}\" ..."
"Setting runtime parameter \"#{component_name}\" for component \"#{name}\" to \"#{value}\" in vhost \"#{vhost}\" ..."
end
end

View File

@ -130,7 +130,7 @@ defmodule SetParameterCommandTest do
vhost_opts = Map.merge(context[:opts], %{vhost: context[:vhost]})
assert @command.banner([context[:component_name], context[:key], context[:value]], vhost_opts)
=~ ~r/Setting runtime parameter \"#{context[:component_name]}\" for component \"#{context[:key]}\" to \"#{context[:value]}\" for vhost \"#{context[:vhost]}\" \.\.\./
=~ ~r/Setting runtime parameter \"#{context[:component_name]}\" for component \"#{context[:key]}\" to \"#{context[:value]}\" in vhost \"#{context[:vhost]}\" \.\.\./
end
# Checks each element of the first parameter against the expected context values