mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
6c19e81a06
Signed-off-by: Miah Johnson <miah@chia-pet.org>
14 lines
401 B
Ruby
14 lines
401 B
Ruby
|
|
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
|