2011-06-16 19:28:54 -04:00
|
|
|
Shindo.tests('Fog::Compute[:aws] | availability zone requests', ['aws']) do
|
2010-05-23 17:35:31 -04:00
|
|
|
|
2010-05-26 18:22:23 -04:00
|
|
|
@availability_zones_format = {
|
|
|
|
'availabilityZoneInfo' => [{
|
2010-10-04 18:46:12 -04:00
|
|
|
'messageSet' => [],
|
2010-05-26 18:22:23 -04:00
|
|
|
'regionName' => String,
|
|
|
|
'zoneName' => String,
|
|
|
|
'zoneState' => String
|
|
|
|
}],
|
|
|
|
'requestId' => String
|
|
|
|
}
|
|
|
|
|
2010-05-23 17:35:31 -04:00
|
|
|
tests('success') do
|
|
|
|
|
2010-05-26 18:22:23 -04:00
|
|
|
tests('#describe_availability_zones').formats(@availability_zones_format) do
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:aws].describe_availability_zones.body
|
2010-05-23 17:35:31 -04:00
|
|
|
end
|
|
|
|
|
2010-10-04 18:46:12 -04:00
|
|
|
tests("#describe_availability_zones('zone-name' => 'us-east-1a')").formats(@availability_zones_format) do
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:aws].describe_availability_zones('zone-name' => 'us-east-1a').body
|
2010-05-23 17:35:31 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|