2009-08-17 18:55:30 -04:00
|
|
|
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2009-07-24 01:52:17 -04:00
|
|
|
|
|
|
|
describe 'EC2.describe_availability_zones' do
|
2009-08-19 23:32:57 -04:00
|
|
|
describe 'success' do
|
2009-07-24 01:52:17 -04:00
|
|
|
|
2009-08-19 23:32:57 -04:00
|
|
|
it "should return proper attributes with no params" do
|
|
|
|
actual = ec2.describe_regions
|
|
|
|
zone = actual.body['regionInfo'].first
|
|
|
|
zone['regionEndpoint'].should be_a(String)
|
|
|
|
zone['regionName'].should be_a(String)
|
|
|
|
end
|
2009-07-24 01:52:17 -04:00
|
|
|
|
2009-08-19 23:32:57 -04:00
|
|
|
it "should return proper attribute with params" do
|
|
|
|
actual = ec2.describe_regions(['us-east-1'])
|
|
|
|
zone = actual.body['regionInfo'].first
|
|
|
|
zone['regionEndpoint'].should be_a(String)
|
|
|
|
zone['regionName'].should be_a(String)
|
|
|
|
end
|
2009-07-24 01:52:17 -04:00
|
|
|
|
2009-08-19 23:32:57 -04:00
|
|
|
end
|
2009-07-24 01:52:17 -04:00
|
|
|
end
|