inspec/test/unit/resources/kernel_parameter_test.rb
Sonu Saha d6950fcd1c CFINSPEC-267: resource_id unit test: kernel_parameter
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-06-02 11:13:26 +05:30

11 lines
375 B
Ruby

require "helper"
require "inspec/resource"
require "inspec/resources/kernel_parameter"
describe "Inspec::Resources::KernelParameter" do
it "verify kernel_parameter parsing" do
resource = load_resource("kernel_parameter", "net.ipv4.conf.all.forwarding")
_(resource.value).must_equal 1
_(resource.resource_id).must_equal "net.ipv4.conf.all.forwarding"
end
end