<commit_before>require 'spec_helper'

describe 'zabbix::javagateway' do
  let (:node) { 'rspec.puppet.com' }

  context 'On RedHat 6.5' do
    let (:facts) do
      {
        :osfamily                   => 'RedHat',
        :operatingsystem            => 'RedHat',
        :operatingsystemrelease     => '6.5',
        :operatingsystemmajrelease  => '6',
        :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

    it { should contain_file('/etc/zabbix/zabbix_java_gateway.conf')}
    it { should contain_service('zabbix-java-gateway')}

    context 'when declaring manage_repo is true' do
      let (:params) do
        {
          :manage_repo => true,<commit_msg>add missing test for Package[zabbix-java-gateway]<commit_after>require 'spec_helper'

describe 'zabbix::javagateway' do
  let (:node) { 'rspec.puppet.com' }

  context 'On RedHat 6.5' do
    let (:facts) do
      {
        :osfamily                   => 'RedHat',
        :operatingsystem            => 'RedHat',
        :operatingsystemrelease     => '6.5',
        :operatingsystemmajrelease  => '6',
        :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

    it { should contain_file('/etc/zabbix/zabbix_java_gateway.conf')}
    it { should contain_service('zabbix-java-gateway')}
    it { should contain_package('zabbix-java-gateway')}

    context 'when declaring manage_repo is true' do
      let (:params) do
        {
          :manage_repo => true,
{'fraction_non_alphanumeric': 0.13254901960784313, 'fraction_numerical': 0.01411764705882353, 'mean_word_length': 1.4226020892687559, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6416790', 'n_tokens_mistral': 831, 'n_tokens_neox': 766, 'n_words': 134}