inspec/test/unit/resources/kernel_parameter_test.rb

12 lines
375 B
Ruby
Raw Normal View History

require "helper"
require "inspec/resource"
require "inspec/resources/kernel_parameter"
2015-09-20 16:43:52 +00:00
describe "Inspec::Resources::KernelParameter" do
it "verify kernel_parameter parsing" do
resource = load_resource("kernel_parameter", "net.ipv4.conf.all.forwarding")
2015-09-22 16:33:05 +00:00
_(resource.value).must_equal 1
_(resource.resource_id).must_equal "net.ipv4.conf.all.forwarding"
2015-09-20 16:43:52 +00:00
end
end