2019-06-11 22:24:35 +00:00
|
|
|
require "helper"
|
|
|
|
require "inspec/resource"
|
|
|
|
require "inspec/resources/rabbitmq_config"
|
2017-04-05 14:09:03 +00:00
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
describe "Inspec::Resources::RabbitmqConf" do
|
2017-04-05 14:09:03 +00:00
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
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 })
|
2017-04-05 14:09:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|