puppet-cinder/spec/classes/cinder_volume_spec.rb
Doug Schaapveld 4d5a3a771d Adding manage_service parameter to all services
When set to false, enables puppet to configure a service without
starting/stopping it on each run.  This may be necessary when
using an external clustering system (Corosync/Pacemaker, for
example).  Defaults to true.

Change-Id: Icadfd9fcfab322550a04b1ffb77c55383c9b292c
2014-02-28 22:44:21 -06:00

27 lines
619 B
Ruby

require 'spec_helper'
describe 'cinder::volume' do
let :pre_condition do
'class { "cinder": rabbit_password => "fpp", sql_connection => "mysql://a:b@c/d" }'
end
let :facts do
{:osfamily => 'Debian'}
end
it { should contain_package('cinder-volume').with_ensure('present') }
it { should contain_service('cinder-volume').with(
'hasstatus' => true
)}
describe 'with manage_service false' do
let :params do
{ 'manage_service' => false }
end
it 'should not change the state of the service' do
should contain_service('cinder-volume').without_ensure
end
end
end