mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
adaf2bc364
This speeds up parallel unit test runs from a very consistent 2:49 to a very consistent 1:53, or a 33% reduction. Signed-off-by: Ryan Davis <zenspider@chef.io>
12 lines
521 B
Ruby
12 lines
521 B
Ruby
|
|
require 'helper'
|
|
|
|
describe 'Inspec::Resources::Ini' do
|
|
|
|
it 'check ini parsing on ubuntu' do
|
|
resource = MockLoader.new(:ubuntu1404).load_resource('ini', 'rootwrap.conf')
|
|
result = {"DEFAULT"=>{"filters_path"=>"/etc/cinder/rootwrap.d,/usr/share/cinder/rootwrap", "exec_dirs"=>"/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin"}}
|
|
_(resource.params).must_equal result
|
|
_(resource.value(['DEFAULT','exec_dirs'])).must_equal '/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin'
|
|
end
|
|
end
|