Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9345635
php_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
839 B
Subscribers
None
php_spec.rb
View Options
require
'spec_helper_acceptance'
describe
'php with default settings'
do
context
'default parameters'
do
it
'works with defaults'
do
pp
=
'include php'
# Run it twice and test for idempotency
apply_manifest
(
pp
,
catch_failures
:
true
)
apply_manifest
(
pp
,
catch_changes
:
true
)
end
case
default
[
:platform
]
when
%r{ubuntu-16.04}
packagename
=
'php7.0-fpm'
when
%r{ubuntu-14.04}
packagename
=
'php5-fpm'
when
%r{el}
packagename
=
'php-fpm'
when
%r{debian-8}
packagename
=
'php5-fpm'
when
%r{debian-9}
packagename
=
'php7.0-fpm'
end
describe
package
(
packagename
)
do
it
{
is_expected
.
to
be_installed
}
end
describe
service
(
packagename
)
do
it
{
is_expected
.
to
be_running
}
it
{
is_expected
.
to
be_enabled
}
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Fri, Jul 4, 3:27 PM (6 d, 20 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3379605
Attached To
R140 puppet-puppet-php
Event Timeline
Log In to Comment