2012-01-09 19:20:37 -05:00
|
|
|
Shindo.tests('Fog::Compute[:cloudstack] | disk offering requests', ['cloudstack']) do
|
|
|
|
|
|
|
|
@disk_offerings_format = {
|
|
|
|
'listdiskofferingsresponse' => {
|
|
|
|
'count' => Integer,
|
|
|
|
'diskoffering' => [
|
2013-04-11 05:22:48 -04:00
|
|
|
'id' => String,
|
2012-01-09 19:20:37 -05:00
|
|
|
'created' => String,
|
|
|
|
'disksize' => Integer,
|
|
|
|
'displaytext' => String,
|
|
|
|
'domain' => Fog::Nullable::String,
|
2013-04-11 05:22:48 -04:00
|
|
|
'domainid' => Fog::Nullable::String,
|
2012-01-09 19:20:37 -05:00
|
|
|
'iscustomized' => Fog::Boolean,
|
|
|
|
'name' => String,
|
2013-04-11 05:22:48 -04:00
|
|
|
'storagetype' => String,
|
2012-01-09 19:20:37 -05:00
|
|
|
'tags' => Fog::Nullable::String
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
|
|
|
tests('#list_disk_offerings').formats(@disk_offerings_format) do
|
|
|
|
Fog::Compute[:cloudstack].list_disk_offerings
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|