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

29 lines
732 B
Ruby
Raw Normal View History

Shindo.tests('Fog::Compute[:cloudstack] | disk offering requests', ['cloudstack']) do
@disk_offerings_format = {
'listdiskofferingsresponse' => {
'count' => Integer,
'diskoffering' => [
'id' => String,
'created' => String,
'disksize' => Integer,
'displaytext' => String,
'domain' => Fog::Nullable::String,
'domainid' => Fog::Nullable::String,
'iscustomized' => Fog::Boolean,
'name' => String,
'storagetype' => String,
'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