
This commit updates the default value for enable for nova components to default to true, instead of false. Without this change the nova service is not enabled by default resulting in a different behavior than with other puppet openstack modules. Associated tests are updated to expect the change in defaults. Co-Authored-By: Cody Herriges <cody@puppetlabs.com> Change-Id: I49fc84f9fedfe00d7846441e1b49334abb09e0eb Closes-bug: #1220473
35 lines
655 B
Ruby
35 lines
655 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'nova::generic_service' do
|
|
describe 'package should come before service' do
|
|
let :pre_condition do
|
|
'include nova'
|
|
end
|
|
|
|
let :params do
|
|
{
|
|
:package_name => 'foo',
|
|
:service_name => 'food'
|
|
}
|
|
end
|
|
|
|
let :facts do
|
|
{ :osfamily => 'Debian' }
|
|
end
|
|
|
|
let :title do
|
|
'foo'
|
|
end
|
|
|
|
it { is_expected.to contain_service('nova-foo').with(
|
|
'name' => 'food',
|
|
'ensure' => 'running',
|
|
'enable' => true
|
|
)}
|
|
|
|
it { is_expected.to contain_service('nova-foo').that_requires(
|
|
['Package[nova-common]', 'Package[nova-foo]']
|
|
)}
|
|
end
|
|
end
|