Page MenuHomeSoftware Heritage

preferred_servers_spec.rb
No OneTemporary

preferred_servers_spec.rb

require 'spec_helper_acceptance'
describe 'preferred servers', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
pp = <<-EOS
class { '::ntp':
servers => ['a', 'b', 'c', 'd'],
preferred_servers => ['c', 'd'],
}
EOS
it 'applies cleanly' do
apply_manifest(pp, :catch_failures => true) do |r|
expect(r.stderr).not_to match(/error/i)
end
end
describe file('/etc/ntp.conf') do
it { should be_file }
it { should contain 'server a' }
it { should contain 'server b' }
it { should contain 'server c prefer' }
it { should contain 'server d prefer' }
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Wed, Jun 4, 7:16 PM (4 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3356877

Event Timeline