memcached (openstack) is no longer in use
[mirror/dsa-puppet.git] / 3rdparty / modules / nova / spec / classes / nova_qpid_spec.rb
1 require 'spec_helper'
2
3 describe 'nova::qpid' do
4
5   let :facts do
6     {:puppetversion => '2.7'}
7   end
8
9   describe 'with defaults' do
10
11     it 'should contain all of the default resources' do
12
13       should contain_class('qpid::server').with(
14         :service_ensure    => 'running',
15         :port              => '5672'
16       )
17
18     end
19
20     it 'should contain user' do
21
22       should contain_qpid_user('guest').with(
23         :password => 'guest',
24         :file     => '/var/lib/qpidd/qpidd.sasldb',
25         :realm    => 'OPENSTACK',
26         :provider => 'saslpasswd2'
27       )
28
29     end
30
31   end
32
33   describe 'when disabled' do
34     let :params do
35       {
36         :enabled  => false
37       }
38     end
39
40     it 'should be disabled' do
41
42       should_not contain_qpid_user('guest')
43       should contain_class('qpid::server').with(
44         :service_ensure    => 'stopped'
45       )
46
47     end
48   end
49
50 end