From fbbe0f044771dec18a7979a551c7f45e4fd00466 Mon Sep 17 00:00:00 2001 From: Nelvin Driz Date: Mon, 3 Dec 2012 15:33:33 +0800 Subject: [PATCH] [openstack|compute] Update Quota Mocks based on Folsom Stable Basis: https://github.com/openstack/nova/blob/stable/folsom/nova/quota.py#L34 Signed-off-by: Nelvin Driz --- lib/fog/openstack/compute.rb | 16 ++++++++++------ tests/openstack/requests/compute/quota_tests.rb | 2 ++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/fog/openstack/compute.rb b/lib/fog/openstack/compute.rb index 01cbe5c87..2183b1b0c 100644 --- a/lib/fog/openstack/compute.rb +++ b/lib/fog/openstack/compute.rb @@ -190,15 +190,19 @@ module Fog :security_groups => {}, :addresses => {}, :quota => { - 'metadata_items' => 128, - 'key_pairs' => 10, + 'security_group_rules' => 20, + 'security_groups' => 10, 'injected_file_content_bytes' => 10240, 'injected_file_path_bytes' => 256, 'injected_files' => 5, - 'ram' => 51200, - 'floating_ips' => 10, - 'instances' => 10, - 'cores' => 20, + 'metadata_items' => 128, + 'floating_ips' => 10, + 'instances' => 10, + 'key_pairs' => 10, + 'gigabytes' => 5000, + 'volumes' => 10, + 'cores' => 20, + 'ram' => 51200 } } end diff --git a/tests/openstack/requests/compute/quota_tests.rb b/tests/openstack/requests/compute/quota_tests.rb index c215a3117..5be0c04bb 100644 --- a/tests/openstack/requests/compute/quota_tests.rb +++ b/tests/openstack/requests/compute/quota_tests.rb @@ -13,6 +13,8 @@ Shindo.tests('Fog::Compute[:openstack] | quota requests', ['openstack']) do 'cores' => Fixnum, 'security_groups' => Fog::Nullable::Integer, 'security_group_rules' => Fog::Nullable::Integer, + 'volumes' => Fog::Nullable::Integer, + 'gigabytes' => Fog::Nullable::Integer, 'id' => String }