memcached (openstack) is no longer in use
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / spec / classes / cinder_volume_spec.rb
1 require 'spec_helper'
2
3 describe 'cinder::volume' do
4
5   let :pre_condition do
6     'class { "cinder": rabbit_password => "fpp", database_connection => "mysql://a:b@c/d" }'
7   end
8
9   let :facts do
10     {:osfamily => 'Debian'}
11   end
12
13   it { should contain_package('cinder-volume').with_ensure('present') }
14   it { should contain_service('cinder-volume').with(
15       'hasstatus' => true
16   )}
17
18   describe 'with manage_service false' do
19     let :params do
20       { 'manage_service' => false }
21     end
22     it 'should not change the state of the service' do
23       should contain_service('cinder-volume').without_ensure
24     end
25   end
26 end