Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125272
php_fpm_config_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
887 B
Subscribers
None
php_fpm_config_spec.rb
View Options
require
'rspec'
require
'spec_helper'
describe
'php::fpm::config'
do
on_supported_os
.
each
do
|
os
,
facts
|
context
"on
#{
os
}
"
do
let
:facts
do
facts
end
describe
'creates config file'
do
let
(
:params
)
do
{
inifile
:
'/etc/php5/conf.d/unique-name.ini'
,
settings
:
{
'apc.enabled'
=>
1
}
}
end
it
do
is_expected
.
to
contain_class
(
'php::fpm::config'
)
.
with
(
inifile
:
'/etc/php5/conf.d/unique-name.ini'
,
settings
:
{
'apc.enabled'
=>
1
}
)
end
it
do
is_expected
.
to
contain_php__config
(
'fpm'
)
.
with
(
file
:
'/etc/php5/conf.d/unique-name.ini'
,
config
:
{
'apc.enabled'
=>
1
}
)
end
end
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sat, Jun 21, 8:23 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3285153
Attached To
R140 puppet-puppet-php
Event Timeline
Log In to Comment