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

23 lines
546 B
Ruby

Shindo.tests('Fog::Compute[:aws] | region requests', ['aws']) do
@regions_format = {
'regionInfo' => [{
'regionEndpoint' => String,
'regionName' => String
}],
'requestId' => String
}
tests('success') do
tests("#describe_regions").formats(@regions_format) do
Fog::Compute[:aws].describe_regions.body
end
tests("#describe_regions('region-name' => 'us-east-1')").formats(@regions_format) do
Fog::Compute[:aws].describe_regions('region-name' => 'us-east-1').body
end
end
end