<commit_before>require 'spec_helper'

describe file('/etc/network/interfaces') do
  it { should be_file }
  it { should contain 'eth1' }
  it { should contain 'eth2' }
end

describe interface('eth1') do
  it { should have_ipv4_address("10.10.20.10") }
  it { should have_ipv4_address("10.10.20.10/16") }
end

describe file('/etc/hosts') do
  it { should be_file }
  it { should contain 'foo' }
end

describe host('foo') do
  it { should be_resolvable }
end

describe default_gateway do
  its(:ipaddress) { should eq '10.10.10.1' }
  its(:interface) { should eq 'eth1' }
end

describe file('/etc/resolv.conf') do
  it { should be_file }
  it { should contain 'foo' }
end<commit_msg>Updated tests<commit_after>require 'spec_helper'

describe file('/etc/network/interfaces') do
  it { should be_file }
  it { should contain 'eth1' }
  it { should contain 'eth2' }
end

describe file('/etc/hosts') do
  it { should be_file }
  it { should contain 'foo' }
end

describe host('foo') do
  it { should be_resolvable }
end

describe file('/etc/resolv.conf') do
  it { should be_file }
  it { should contain 'example.local' }
end
{'fraction_non_alphanumeric': 0.13136729222520108, 'fraction_numerical': 0.029490616621983913, 'mean_word_length': 3.8484848484848486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2120861', 'n_tokens_mistral': 419, 'n_tokens_neox': 398, 'n_words': 114}