Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8393678
preferred_servers_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
647 B
Subscribers
None
preferred_servers_spec.rb
View Options
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
Details
Attached
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
Attached To
rSPNTP puppet-puppetlabs-ntp
Event Timeline
Log In to Comment