inspec/test/unit/resources/rabbitmq_conf_test.rb
Miah Johnson 659b4b373a Remove # encoding: utf8 magic comments
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 16:06:23 -07:00

16 lines
456 B
Ruby

# 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