inspec/test/unit/resources/rabbitmq_conf_test.rb
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

14 lines
449 B
Ruby

require "helper"
require "inspec/resource"
require "inspec/resources/rabbitmq_config"
describe "Inspec::Resources::RabbitmqConf" do
describe "rabbitmq_config" do
it "check rabbitmq config parsing" do
resource = load_resource("rabbitmq_config")
_(resource.params("rabbit", "ssl_listeners")).must_equal [5671]
_(resource.params("rabbit", "tcp_listeners")).must_equal({ "127.0.0.1" => 5672, "::1" => 5672 })
end
end
end