Merge "Fix nova::quota param quota_ram misspelling."

This commit is contained in:
Jenkins
2013-04-10 20:32:12 +00:00
committed by Gerrit Code Review
2 changed files with 19 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
class nova::quota(
$quota_instances = 10,
$quota_cores = 20,
$quota_rams = 51200,
$quota_ram = 51200,
$quota_volumes = 10,
$quota_gigabytes = 1000,
$quota_floating_ips = 10,
@@ -21,7 +21,7 @@ class nova::quota(
nova_config {
'quota_instances': value => $quota_instances;
'quota_cores': value => $quota_cores;
'quota_rams': value => $quota_rams;
'quota_ram': value => $quota_ram;
'quota_volumes': value => $quota_volumes;
'quota_gigabytes': value => $quota_gigabytes;
'quota_floating_ips': value => $quota_floating_ips;

View File

@@ -0,0 +1,17 @@
require 'spec_helper'
describe 'nova::quota' do
it { should contain_nova_config('quota_ram').with_value('51200') }
describe 'when overriding params' do
let :params do
{:quota_ram => '1'}
end
it { should contain_nova_config('quota_ram').with_value('1') }
end
end