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

24 lines
546 B
Ruby
Raw Normal View History

Shindo.tests('Fog::Compute[:aws] | region requests', ['aws']) do
@regions_format = {
'regionInfo' => [{
'regionEndpoint' => String,
'regionName' => String
}],
'requestId' => String
}
2010-05-23 14:25:20 -07:00
tests('success') do
tests("#describe_regions").formats(@regions_format) do
Fog::Compute[:aws].describe_regions.body
2010-05-23 14:25:20 -07:00
end
tests("#describe_regions('region-name' => 'us-east-1')").formats(@regions_format) do
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:25:20 -07:00
end