<commit_before>require 'spec_helper'

describe 'zabbix::sender' do
  let (:node) { 'agent.example.com' }

  context 'On RedHat 7.1' do
    let (:facts) do
      {
        :osfamily               => 'RedHat',
        :operatingsystem        => 'RedHat',
        :operatingsystemrelease => '7.1',
        :architecture           => 'x86_64',
        :lsbdistid              => 'RedHat',
        :concat_basedir         => '/tmp',
      }
    end

    # Make sure package will be installed, service running and ensure of directory.
    it { should contain_package('zabbix-sender').with_ensure('present') }
    it { should contain_package('zabbix-sender').with_name('zabbix-sender') }

    context "when declaring manage_repo is true" do
      let (:params) do
        {
          :manage_repo => true,
        }
      end

      it { should contain_class('zabbix::repo').with_zabbix_version('3.0') }
      it { should contain_package('zabbix-sender').with_require('Class[Zabbix::Repo]')}
    end

  end
end<commit_msg>add missing facts in sender_spec<commit_after>require 'spec_helper'

describe 'zabbix::sender' do
  let (:node) { 'agent.example.com' }

  context 'On RedHat 7.1' do
    let (:facts) do
      {
        :osfamily                   => 'RedHat',
        :operatingsystem            => 'RedHat',
        :operatingsystemrelease     => '7.1',
        :operatingsystemmajrelease  => '7',
        :architecture               => 'x86_64',
        :lsbdistid                  => 'RedHat',
        :concat_basedir             => '/tmp',
        :is_pe                      => false,
        :puppetversion              => Puppet.version,
        :facterversion              => Facter.version,
        :ipaddress                  => '192.168.1.10',
        :lsbdistcodename            => '',
        :id                         => 'root',
        :kernel                     => 'Linux',
        :path                       => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin',
      }
    end

    # Make sure package will be installed, service running and ensure of directory.
    it { should contain_package('zabbix-sender').with_ensure('present') }
    it { should contain_package('zabbix-sender').with_name('zabbix-sender') }

    context "when declaring manage_repo is true" do
      let (:params) do
        {
          :manage_repo => true,
        }
      end

      it { should contain_class('zabbix::repo').with_zabbix_version('3.0') }
      it { should contain_package('zabbix-sender').with_require('Class[Zabbix::Repo]')}
    end

  end
end
{'fraction_non_alphanumeric': 0.1309246309246309, 'fraction_numerical': 0.011655011655011656, 'mean_word_length': 1.8611111111111112, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6172257', 'n_tokens_mistral': 824, 'n_tokens_neox': 773, 'n_words': 158}