3 describe 'glance::backend::rbd' do
10 describe 'when defaults with rbd_store_user' do
13 :rbd_store_user => 'glance',
17 it { should contain_glance_api_config('glance_store/default_store').with_value('rbd') }
18 it { should contain_glance_api_config('glance_store/rbd_store_pool').with_value('images') }
19 it { should contain_glance_api_config('glance_store/rbd_store_ceph_conf').with_value('/etc/ceph/ceph.conf') }
20 it { should contain_glance_api_config('glance_store/rbd_store_chunk_size').with_value('8') }
23 it { should contain_package('python-ceph').with(
24 :name => 'python-ceph',
30 describe 'when passing params' do
33 :rbd_store_user => 'user',
34 :rbd_store_chunk_size => '2',
35 :package_ensure => 'latest',
38 it { should contain_glance_api_config('glance_store/rbd_store_user').with_value('user') }
39 it { should contain_glance_api_config('glance_store/rbd_store_chunk_size').with_value('2') }
40 it { should contain_package('python-ceph').with(
41 :name => 'python-ceph',