mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
52ae5e434b
Signed-off-by: David Gasper <dmgasper@osuosl.org>
14 lines
439 B
Ruby
14 lines
439 B
Ruby
require "helper"
|
|
require "inspec/resource"
|
|
require "inspec/resources/postfix_conf"
|
|
|
|
describe "Inspec::Resources::Postfix_Conf" do
|
|
|
|
|
|
it 'test default parsing of main.cf on centos 7' do
|
|
resource = MockLoader.new(:centos7).load_resource("postfix_conf")
|
|
result = { "test_parameter" => "value", "other_test_param" => "$value" }
|
|
_(resource.params).must_equal result
|
|
_(resource.value(%w{test_parameter})).must_equal "value"
|
|
end
|
|
end
|