2011-10-10 00:37:26 -04:00
|
|
|
Shindo.tests('Fog::Compute[:cloudstack] | zone requests', ['cloudstack']) do
|
|
|
|
|
|
|
|
@zones_format = {
|
|
|
|
'listzonesresponse' => {
|
|
|
|
'count' => Integer,
|
|
|
|
'zone' => [
|
|
|
|
'id' => Integer,
|
|
|
|
'name' => String,
|
2012-01-09 19:20:37 -05:00
|
|
|
'dns1' => Fog::Nullable::String,
|
|
|
|
'dns2' => Fog::Nullable::String,
|
|
|
|
'internaldns1' => Fog::Nullable::String,
|
|
|
|
'internaldns2' => Fog::Nullable::String,
|
|
|
|
'vlan' => Fog::Nullable::String,
|
|
|
|
'guestcidraddress' => Fog::Nullable::String,
|
2011-10-10 00:37:26 -04:00
|
|
|
'networktype' => String,
|
2012-01-09 19:20:37 -05:00
|
|
|
'securitygroupsenabled' => Fog::Nullable::Boolean,
|
2011-10-10 00:37:26 -04:00
|
|
|
'allocationstate' => String,
|
2012-01-09 19:20:37 -05:00
|
|
|
'dhcpprovider' => String,
|
|
|
|
'zonetoken' => Fog::Nullable::String
|
2011-10-10 00:37:26 -04:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
|
|
|
tests('#list_zones').formats(@zones_format) do
|
|
|
|
pending if Fog.mocking?
|
|
|
|
Fog::Compute[:cloudstack].list_zones
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|