Added modules
This commit is contained in:
parent
c53c931217
commit
59ec520742
646 changed files with 35182 additions and 0 deletions
24
modules/ntp/spec/acceptance/preferred_servers_spec.rb
Normal file
24
modules/ntp/spec/acceptance/preferred_servers_spec.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue