Added modules
This commit is contained in:
parent
c53c931217
commit
59ec520742
646 changed files with 35182 additions and 0 deletions
20
modules/ntp/spec/acceptance/restrict_spec.rb
Normal file
20
modules/ntp/spec/acceptance/restrict_spec.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
require 'spec_helper_acceptance'
|
||||
|
||||
describe "ntp class with restrict:", :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
|
||||
context 'should run successfully' do
|
||||
pp = "class { 'ntp': restrict => ['test restrict']}"
|
||||
|
||||
it 'runs twice' do
|
||||
2.times do
|
||||
apply_manifest(pp, :catch_failures => true) do |r|
|
||||
expect(r.stderr).not_to match(/error/i)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe file('/etc/ntp.conf') do
|
||||
it { should contain('test restrict') }
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue