mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
22 lines
675 B
Ruby
22 lines
675 B
Ruby
# encoding: utf-8
|
|
|
|
require 'helper'
|
|
require 'vulcano/resource'
|
|
|
|
describe 'Vulcano::Resources::AuditDaemonRules' do
|
|
describe 'audit_daemon_rules' do
|
|
let(:resource) { loadResource('audit_daemon_rules') }
|
|
|
|
it 'check audit policy parsing' do
|
|
_(resource.send('LIST_RULES')).must_equal [
|
|
'exit,always syscall=rmdir,unlink',
|
|
'exit,always auid=1001 (0x3e9) syscall=open',
|
|
'exit,always watch=/etc/group perm=wa',
|
|
'exit,always watch=/etc/passwd perm=wa',
|
|
'exit,always watch=/etc/shadow perm=wa',
|
|
'exit,always watch=/etc/sudoers perm=wa',
|
|
'exit,always watch=/etc/secret_directory perm=r'
|
|
]
|
|
end
|
|
end
|
|
end
|