2011-10-10 00:37:26 -04:00
|
|
|
Shindo.tests('Fog::Compute[:cloudstack] | volume requests', ['cloudstack']) do
|
|
|
|
|
|
|
|
@volumes_format = {
|
|
|
|
'listvolumesresponse' => {
|
|
|
|
'count' => Integer,
|
|
|
|
'volume' => [
|
2014-12-22 08:43:00 -05:00
|
|
|
'id' => String,
|
2011-10-10 00:37:26 -04:00
|
|
|
'name' => String,
|
2014-12-22 08:43:00 -05:00
|
|
|
'zoneid' => String,
|
2011-10-10 00:37:26 -04:00
|
|
|
'zonename' => String,
|
|
|
|
'type' => String,
|
|
|
|
'size' => Integer,
|
|
|
|
'created' => String,
|
|
|
|
'account' => String,
|
2014-12-22 08:43:00 -05:00
|
|
|
'domainid' => String,
|
2011-10-10 00:37:26 -04:00
|
|
|
'domain' => String,
|
|
|
|
'state' => String,
|
|
|
|
'storagetype' => String,
|
|
|
|
'hypervisor' => String,
|
2014-12-22 08:43:00 -05:00
|
|
|
'diskofferingid' => Fog::Nullable::String,
|
2011-10-10 00:37:26 -04:00
|
|
|
'diskofferingname' => Fog::Nullable::String,
|
|
|
|
'diskofferingdisplaytext' => Fog::Nullable::String,
|
|
|
|
'storage' => String,
|
|
|
|
'destroyed' => Fog::Boolean,
|
|
|
|
'isextractable' => Fog::Boolean,
|
|
|
|
'deviceid' => Fog::Nullable::Integer,
|
2014-12-22 08:43:00 -05:00
|
|
|
'virtualmachineid' => Fog::Nullable::String,
|
2011-10-10 00:37:26 -04:00
|
|
|
'vmname' => Fog::Nullable::String,
|
|
|
|
'vmdisplayname' => Fog::Nullable::String,
|
|
|
|
'vmstate' => Fog::Nullable::String,
|
|
|
|
'serviceofferingid' => Fog::Nullable::Integer,
|
|
|
|
'serviceofferingname' => Fog::Nullable::String,
|
|
|
|
'serviceofferingdisplaytext' => Fog::Nullable::String,
|
|
|
|
'attached' => Fog::Nullable::String
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
|
|
|
tests('#list_volumes').formats(@volumes_format) do
|
|
|
|
Fog::Compute[:cloudstack].list_volumes('zoneid' => 1)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2012-08-16 12:43:07 -04:00
|
|
|
end
|