mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
eac4e11b34
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
12 lines
425 B
Ruby
12 lines
425 B
Ruby
require "helper"
|
|
require "inspec/resource"
|
|
require "inspec/resources/limits_conf"
|
|
|
|
describe "Inspec::Resources::LimitsConf" do
|
|
it "verify limits.conf config parsing" do
|
|
resource = load_resource("limits_conf")
|
|
_(resource.send("*")).must_equal [%w{soft core 0}, %w{hard rss 10000}]
|
|
_(resource.send("ftp")).must_equal [%w{hard nproc 0}]
|
|
_(resource.resource_id).must_equal "/etc/security/limits.conf"
|
|
end
|
|
end
|