mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
523 B
Ruby
19 lines
523 B
Ruby
Shindo.tests('AWS::EC2 | region requests', ['aws']) do
|
|
tests('success') do
|
|
|
|
tests("#describe_regions").formats(AWS::EC2::Formats::REGIONS) do
|
|
AWS[:ec2].describe_regions.body
|
|
end
|
|
|
|
tests("#describe_regions('us-east-1')").formats(AWS::EC2::Formats::REGIONS) do
|
|
AWS[:ec2].describe_regions('us-east-1').body
|
|
end
|
|
|
|
end
|
|
tests('failure') do
|
|
|
|
tests("#describe_regions('not-a-region')").raises(Excon::Errors::BadRequest) do
|
|
AWS[:ec2].describe_regions('not-a-region').body
|
|
end
|
|
end
|
|
end
|