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/ec2/region_tests.rb

23 lines
521 B
Ruby
Raw Normal View History

2010-05-23 17:25:20 -04:00
Shindo.tests('AWS::EC2 | region requests', ['aws']) do
2010-05-23 17:25:20 -04:00
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
2010-05-23 17:25:20 -04:00
tests('failure') do
tests("#describe_regions('not-a-region')").raises(Excon::Errors::BadRequest) do
AWS[:ec2].describe_regions('not-a-region')
2010-05-23 17:25:20 -04:00
end
end
2010-05-23 17:25:20 -04:00
end