<commit_before>require 'spec_helper'
  describe 'auditd', :type => :class do
    context 'with defaults for all parameters' do
      let (:facts) {{
        :osfamily               => 'RedHat',
        :operatingsystemrelease => '7',
      }}
      it { should contain_class('auditd') }
    end
end
<commit_msg>Full test added back for RHEL 7 system with defaults<commit_after>require 'spec_helper'
  describe 'auditd', :type => :class do
    context 'when called with no parameters on RedHat 7' do
      let (:facts) {{
        :osfamily               => 'RedHat',
        :operatingsystemrelease => '7',
      }}
      it { 
        should contain_class('auditd')
        should contain_package('audit').with({
          'ensure' => 'present',
        })
        should contain_file('/etc/audit/auditd.conf').with({
          'ensure' => 'file',
          'owner'  => 'root',
          'group'  => 'root',
          'mode'   => '0640',
        })
        should contain_file('/etc/audit/audit.rules').with({
          'ensure' => 'file',
          'owner'  => 'root',
          'group'  => 'root',
          'mode'   => '0640',
        })
        should contain_service('auditd').with({
          'ensure'    => 'running',
          'enable'    => 'true',
          'hasstatus' => 'true',
          'restart'   => '/usr/libexec/initscripts/legacy-actions/auditd/restart',
          'stop'      => '/usr/libexec/initscripts/legacy-actions/auditd/stop',
        })
      }
    end
end

{'fraction_non_alphanumeric': 0.15757575757575756, 'fraction_numerical': 0.00808080808080808, 'mean_word_length': 1.8966861598440545, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1043105', 'n_tokens_mistral': 469, 'n_tokens_neox': 459, 'n_words': 98}