2019-06-11 22:24:35 +00:00
|
|
|
require "helper"
|
|
|
|
require "inspec/resource"
|
|
|
|
require "inspec/resources/auditd_conf"
|
2015-09-05 21:07:00 +00:00
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
describe "Inspec::Resources::AuditDaemonConf" do
|
|
|
|
it "check audit daemon config parsing" do
|
|
|
|
resource = MockLoader.new(:windows).load_resource("auditd_conf")
|
2022-06-02 08:06:58 +00:00
|
|
|
_(resource.resource_id).must_equal "/etc/audit/auditd.conf"
|
2019-06-11 22:24:35 +00:00
|
|
|
_(resource.space_left_action).must_equal "SYSLOG"
|
|
|
|
_(resource.action_mail_acct).must_equal "root"
|
|
|
|
_(resource.tcp_listen_queue).must_equal "5"
|
2015-09-05 21:07:00 +00:00
|
|
|
end
|
|
|
|
end
|