Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8391423
optutils_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
848 B
Subscribers
None
optutils_spec.rb
View Options
require
'spec_helper'
describe
'cassandra::optutils'
do
context
'On a RedHat OS with defaults for all parameters'
do
let
:facts
do
{
:osfamily
=>
'RedHat'
}
end
it
{
should
contain_class
(
'cassandra::optutils'
)
}
it
{
should
contain_package
(
'cassandra22-tools'
)
}
end
context
'On an Ubuntu OS with defaults for all parameters'
do
let
:facts
do
{
:operatingsystem
=>
'Ubuntu'
}
end
it
{
should
contain_class
(
'cassandra::optutils'
)
}
it
{
should
contain_package
(
'cassandra-tools'
)
}
end
context
'With java_package_name set to foobar'
do
let
:params
do
{
:package_name
=>
'foobar-java'
,
:ensure
=>
'42'
,
}
end
it
{
should
contain_package
(
'foobar-java'
)
.
with
({
:ensure
=>
42
,
})
}
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 6:43 PM (14 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3360389
Attached To
R208 puppet-puppet-cassandra
Event Timeline
Log In to Comment