3 describe 'cinder::quota' do
5 describe 'with default parameters' do
6 it 'contains default values' do
7 should contain_cinder_config('DEFAULT/quota_volumes').with(
9 should contain_cinder_config('DEFAULT/quota_snapshots').with(
11 should contain_cinder_config('DEFAULT/quota_gigabytes').with(
13 should contain_cinder_config('DEFAULT/quota_driver').with(
14 :value => 'cinder.quota.DbQuotaDriver')
18 describe 'with overridden parameters' do
20 { :quota_volumes => 1000,
21 :quota_snapshots => 1000,
22 :quota_gigabytes => 100000 }
24 it 'contains overrided values' do
25 should contain_cinder_config('DEFAULT/quota_volumes').with(
27 should contain_cinder_config('DEFAULT/quota_snapshots').with(
29 should contain_cinder_config('DEFAULT/quota_gigabytes').with(
31 should contain_cinder_config('DEFAULT/quota_driver').with(
32 :value => 'cinder.quota.DbQuotaDriver')