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:
parent
1a753624b8
commit
ba6242f64d
2 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue