<commit_before>require 'spec_helper'

describe 'zabbix::agent::param' do
  context "normal call" do
    let(:title) { 'foo.bar.baz' }
    
    let(:facts) { 
      {
        :operatingsystem => 'Gentoo'
      }
    }
    
    let(:params) {
      {
        :key => 'foo.bar.baz'
      }
    }
    it {
      should contain_class('zabbix::params')
      should contain_file('/etc/zabbix/zabbix_agentd.d/10_foo.bar.baz.conf').with({
        :ensure => 'present'
      })
    }
  end
end<commit_msg>check for key arg<commit_after>require 'spec_helper'

describe 'zabbix::agent::param' do
  context "normal call" do
    let(:title) { 'foo.bar.baz' }
    
    let(:facts) { 
      {
        :operatingsystem => 'Gentoo'
      }
    }
    it {
      should contain_class('zabbix::params')
      should contain_file('/etc/zabbix/zabbix_agentd.d/10_foo.bar.baz.conf').with({
        :ensure => 'present'
      })
    }
  end
  
  context "call with key" do
    let(:title) { 'my witty title' }
    
    let(:params) { 
      {
        :key => 'blergh.key'
      }
    }
    it {
      should contain_file('/etc/zabbix/zabbix_agentd.d/10_blergh.key.conf').with({
        :ensure => 'present'
      })
    }
  end
end
{'fraction_non_alphanumeric': 0.15492957746478872, 'fraction_numerical': 0.004971002485501243, 'mean_word_length': 2.02, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '6425226', 'n_tokens_mistral': 459, 'n_tokens_neox': 445, 'n_words': 69}