<commit_before>require 'spec_helper'

describe 'server_facts', :if => Puppet::Util::Package.versioncmp(Puppet.version, '4.3.0') >= 0 do

  context 'with server_facts' do
    before do
      RSpec.configuration.trusted_server_facts = true
    end

    let(:node) { 'test123.test.com' }
    it { should contain_class('server_facts') }
    it { should compile.with_all_deps }
    it { should contain_notify("servername-test123.test.com") }
    it { should contain_notify("serverip-192.168.1.50") }
    it { should contain_notify("serverversion-4.10.9") }
    it { should contain_notify("environment-rp_env") }
  end
end
<commit_msg>Fix one of the failing tests<commit_after>require 'spec_helper'

describe 'server_facts', :if => Puppet::Util::Package.versioncmp(Puppet.version, '4.3.0') >= 0 do

  context 'with server_facts' do
    before do
      RSpec.configuration.trusted_server_facts = true
    end

    let(:facts) {
      {
        :ipaddress => '192.168.1.10'
      }
    }
    let(:node) { 'test123.test.com' }
    it { should contain_class('server_facts') }
    it { should compile.with_all_deps }
    it { should contain_notify("servername-test123.test.com") }
    it { should contain_notify("serverip-192.168.1.10") }
    it { should contain_notify("serverversion-#{Puppet.version}") }
    it { should contain_notify("environment-rp_env") }
  end
end

{'fraction_non_alphanumeric': 0.13592946362968406, 'fraction_numerical': 0.03747244673034533, 'mean_word_length': 3.6013513513513513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '6939510', 'n_tokens_mistral': 499, 'n_tokens_neox': 459, 'n_words': 88}