2009-07-13 09:58:08 -07:00
|
|
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
|
|
|
|
describe 'EC2.describe_availability_zones' do
|
|
|
|
|
|
|
|
it "should return proper attributes with no params" do
|
|
|
|
actual = ec2.describe_availability_zones
|
2009-08-01 01:15:44 -07:00
|
|
|
zone = actual.body['availabilityZoneInfo'].first
|
|
|
|
zone['regionName'].should be_a(String)
|
|
|
|
zone['zoneName'].should be_a(String)
|
|
|
|
zone['zoneState'].should be_a(String)
|
2009-07-13 09:58:08 -07:00
|
|
|
end
|
|
|
|
|
2009-07-19 17:02:25 -07:00
|
|
|
it "should return proper attribute with params" do
|
|
|
|
actual = ec2.describe_availability_zones(['us-east-1a'])
|
2009-08-01 01:15:44 -07:00
|
|
|
zone = actual.body['availabilityZoneInfo'].first
|
|
|
|
zone['regionName'].should be_a(String)
|
|
|
|
zone['zoneName'].should be_a(String)
|
|
|
|
zone['zoneState'].should be_a(String)
|
2009-07-19 17:02:25 -07:00
|
|
|
end
|
2009-07-13 09:58:08 -07:00
|
|
|
|
|
|
|
end
|