Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9124762
class_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
900 B
Subscribers
None
class_spec.rb
View Options
require
'spec_helper_acceptance'
describe
'hitch class'
do
context
'default parameters'
do
# Using puppet_apply as a helper
it
'should work idempotently with no errors'
do
pp
=
<<-
EOS
class { 'hitch': }
hitch::domain { 'example.org':
key_source => '/tmp/example.org_key.pem',
cert_source => '/tmp/example.org_cert.pem',
}
hitch::domain { 'example.com':
key_source => '/tmp/example.com_key.pem',
cert_source => '/tmp/example.com_cert.pem',
}
EOS
# Run it twice and test for idempotency
apply_manifest
(
pp
,
:catch_failures
=>
true
)
apply_manifest
(
pp
,
:catch_changes
=>
true
)
end
describe
package
(
'hitch'
)
do
it
{
is_expected
.
to
be_installed
}
end
describe
service
(
'hitch'
)
do
it
{
is_expected
.
to
be_enabled
}
it
{
is_expected
.
to
be_running
}
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sat, Jun 21, 7:31 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3306420
Attached To
rSPHIT Hitch TLS proxy puppet module
Event Timeline
Log In to Comment