mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
23 lines
546 B
Ruby
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
|