1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[cloudstack] add list_os_types, list_disk_offerings request mocks

This commit is contained in:
Dmitry Dedov 2013-04-11 11:31:18 +03:00
parent 1a753624b8
commit ba6242f64d
2 changed files with 18 additions and 0 deletions

View file

@ -15,6 +15,15 @@ module Fog
end
end
class Mock
# TODO: add id, name filters and paging params
def list_disk_offerings(options={})
disk_offerings = self.data[:disk_offerings]
{ "listdiskofferingsresponse" => { "count"=> disk_offerings.count, "diskoffering"=> disk_offerings.values } }
end
end
end
end
end

View file

@ -15,6 +15,15 @@ module Fog
end
end
class Mock
# TODO: add id, category_id filters and paging params
def list_os_types(options={})
os_types = self.data[:os_types]
{ "listostypesresponse" => { "count"=> os_types.count, "ostype"=> os_types.values } }
end
end
end
end
end