inspec/test/unit/resources/rabbitmq_conf_test.rb
Dominik Richter 02e435b6d0 add rabbitmq config resource
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2017-04-12 20:51:12 +02:00

17 lines
474 B
Ruby

# encoding: utf-8
# author: Dominik Richter
# author: Christoph Hartmann
require 'helper'
require 'inspec/resource'
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