
DEFAULT/sql_connection is replaced by database/connection DEFAULT/sql_idle_timeout is replaced by database/idle_timeout deprecated params are handled by warning like other modules Change-Id: I1b8e61ac452b69fb611254562d1a42c2732c3c8e
27 lines
624 B
Ruby
27 lines
624 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'cinder::volume' do
|
|
|
|
let :pre_condition do
|
|
'class { "cinder": rabbit_password => "fpp", database_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
|