Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125512
config_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1015 B
Subscribers
None
config_spec.rb
View Options
require
'spec_helper'
describe
'hitch::config'
do
on_supported_os
.
each
do
|
os
,
os_facts
|
context
"on
#{
os
}
"
do
let
(
:facts
)
{
os_facts
}
let
(
:params
)
do
{
config_root
:
'/etc/hitch'
,
config_file
:
'/etc/hitch/hitch.conf'
,
dhparams_file
:
'/etc/hitch/dhparams.pem'
,
purge_config_root
:
true
,
file_owner
:
'root'
,
user
:
'hitch'
,
group
:
'hitch'
,
dhparams_content
:
:undef
,
write_proxy_v2
:
'off'
,
frontend
:
'[*]:443'
,
backend
:
'[::1]:80'
,
ciphers
:
'MODERN'
,
}
end
it
{
is_expected
.
to
compile
}
it
{
is_expected
.
to
contain_file
(
'/etc/hitch'
)
}
it
{
is_expected
.
to
contain_concat
(
'/etc/hitch/hitch.conf'
)
}
it
{
is_expected
.
to
contain_concat__fragment
(
'hitch::config config'
)
}
it
{
is_expected
.
to
contain_file
(
'/etc/hitch/dhparams.pem'
)
}
it
{
is_expected
.
to
contain_exec
(
'hitch::config generate dhparams'
)
}
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sat, Jun 21, 8:58 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3370019
Attached To
rSPHIT Hitch TLS proxy puppet module
Event Timeline
Log In to Comment