<commit_before>require "#{File.join(File.dirname(__FILE__),'..','spec_helper.rb')}"

describe 'network::interface' do

  context 'Test network::interface on Solaris' do

    let(:title) { 'eth0' }
    let(:node) { 'rspec.example42.com' }
    let(:facts) { { :architecture => 'i386' , :osfamily => 'Solaris', :operatingsystemmajrelease => '11' } }
    let(:params) {
      { 'enable'       =>  true,
        'ipaddress'    =>  '10.42.42.42',
        'netmask'      =>  '255.255.255.0',
      }
    }

    it {
      is_expected.to contain_file('hostname iface eth0').with_content(/10.42.42.42/)
    }

    it {
      is_expected.to contain_host(node).with_ip('10.42.42.42')
    }<commit_msg>had to stub out operatingsystemrelease fact too<commit_after>require "#{File.join(File.dirname(__FILE__),'..','spec_helper.rb')}"

describe 'network::interface' do

  context 'Test network::interface on Solaris' do

    let(:title) { 'eth0' }
    let(:node) { 'rspec.example42.com' }
    let(:facts) { { :architecture => 'i386' , :osfamily => 'Solaris', :operatingsystemrelease = '11.3', :operatingsystemmajrelease => '11' } }
    let(:params) {
      { 'enable'       =>  true,
        'ipaddress'    =>  '10.42.42.42',
        'netmask'      =>  '255.255.255.0',
      }
    }

    it {
      is_expected.to contain_file('hostname iface eth0').with_content(/10.42.42.42/)
    }

    it {
      is_expected.to contain_host(node).with_ip('10.42.42.42')
    }
{'fraction_non_alphanumeric': 0.1850828729281768, 'fraction_numerical': 0.06146408839779006, 'mean_word_length': 2.8232189973614776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '3098790', 'n_tokens_mistral': 584, 'n_tokens_neox': 527, 'n_words': 82}