2011-06-16 16:28:54 -07:00
|
|
|
Shindo.tests('Fog::Compute[:aws] | region requests', ['aws']) do
|
2010-05-23 14:35:31 -07:00
|
|
|
|
2010-05-26 15:22:23 -07:00
|
|
|
@regions_format = {
|
|
|
|
'regionInfo' => [{
|
|
|
|
'regionEndpoint' => String,
|
|
|
|
'regionName' => String
|
|
|
|
}],
|
|
|
|
'requestId' => String
|
|
|
|
}
|
|
|
|
|
2010-05-23 14:25:20 -07:00
|
|
|
tests('success') do
|
|
|
|
|
2010-05-26 15:22:23 -07:00
|
|
|
tests("#describe_regions").formats(@regions_format) do
|
2011-06-16 16:28:54 -07:00
|
|
|
Fog::Compute[:aws].describe_regions.body
|
2010-05-23 14:25:20 -07:00
|
|
|
end
|
|
|
|
|
2010-10-04 15:46:12 -07:00
|
|
|
tests("#describe_regions('region-name' => 'us-east-1')").formats(@regions_format) do
|
2011-06-16 16:28:54 -07:00
|
|
|
Fog::Compute[:aws].describe_regions('region-name' => 'us-east-1').body
|
2010-05-23 14:25:20 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2010-05-23 14:35:31 -07:00
|
|
|
|
2010-05-23 14:25:20 -07:00
|
|
|
end
|