Merge pull request #147 from chef/auditd_name

Merged change edd21e7f-f677-4f04-bcc1-2000bcf79663

From review branch auditd_name into master

Signed-off-by: drichter <drichter@chef.io>
This commit is contained in:
chef-delivery 2015-10-26 04:20:48 -07:00
commit ecc731dab1
4 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ require 'utils/simpleconfig'
# end
class AuditDaemonConf < Vulcano.resource(1)
name 'audit_daemon_conf'
name 'auditd_conf'
def initialize(path = nil)
@conf_path = path || '/etc/audit/auditd.conf'

View file

@ -13,7 +13,7 @@
# end
class AuditDaemonRules < Vulcano.resource(1)
name 'audit_daemon_rules'
name 'auditd_rules'
def initialize
@content = vulcano.command('/sbin/auditctl -l').stdout.chomp

View file

@ -7,7 +7,7 @@ require 'vulcano/resource'
describe 'Vulcano::Resources::AuditDaemonConf' do
it 'check audit daemon config parsing' do
resource = MockLoader.new(:windows).load_resource('audit_daemon_conf')
resource = MockLoader.new(:windows).load_resource('auditd_conf')
_(resource.space_left_action).must_equal 'SYSLOG'
_(resource.action_mail_acct).must_equal 'root'
_(resource.tcp_listen_queue).must_equal '5'

View file

@ -7,7 +7,7 @@ require 'vulcano/resource'
describe 'Vulcano::Resources::AuditDaemonRules' do
it 'check audit policy parsing' do
resource = MockLoader.new(:windows).load_resource('audit_daemon_rules')
resource = MockLoader.new(:windows).load_resource('auditd_rules')
_(resource.send('LIST_RULES')).must_equal [
'exit,always syscall=rmdir,unlink',
'exit,always auid=1001 (0x3e9) syscall=open',