Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8393641
disable_monitoring_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
772 B
Subscribers
None
disable_monitoring_spec.rb
View Options
require
'spec_helper_acceptance'
config
=
if
os
[
:family
]
==
'solaris'
'/etc/inet/ntp.conf'
else
'/etc/ntp.conf'
end
describe
'ntp class with disable_monitor:'
,
unless
:
UNSUPPORTED_PLATFORMS
.
include?
(
os
[
:family
]
)
do
context
'with should disable'
do
let
(
:pp
)
{
"class { 'ntp': disable_monitor => true }"
}
it
'idempotent apply, file matches'
do
idempotent_apply
(
default
,
pp
)
expect
(
file
(
config
.
to_s
)
.
content
)
.
to
match
'disable monitor'
end
end
context
'when enabled'
do
let
(
:pp
)
{
"class { 'ntp': disable_monitor => false }"
}
it
'idempotent apply, file matches'
do
idempotent_apply
(
default
,
pp
)
expect
(
file
(
config
.
to_s
)
.
content
)
.
not_to
match
'disable monitor'
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Wed, Jun 4, 7:15 PM (5 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399011
Attached To
rSPNTP puppet-puppetlabs-ntp
Event Timeline
Log In to Comment