mirror of
https://github.com/inspec/inspec
synced 2024-12-02 09:29:32 +00:00
584bbfa3a3
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
12 lines
580 B
Ruby
12 lines
580 B
Ruby
require "helper"
|
|
require "inspec/resource"
|
|
require "inspec/resources/ini"
|
|
|
|
describe "Inspec::Resources::Ini" do
|
|
it "check ini parsing on ubuntu" do
|
|
resource = MockLoader.new(:ubuntu).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(%w{DEFAULT exec_dirs})).must_equal "/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin"
|
|
end
|
|
end
|