2009-08-17 15:55:30 -07:00
|
|
|
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2009-06-30 09:43:39 -07:00
|
|
|
|
2009-07-01 10:14:07 -07:00
|
|
|
describe 'EC2.allocate_address' do
|
2009-08-19 20:32:57 -07:00
|
|
|
describe 'success' do
|
2009-07-01 10:14:07 -07:00
|
|
|
|
2009-08-19 20:32:57 -07:00
|
|
|
after(:each) do
|
2009-08-19 19:11:57 -07:00
|
|
|
ec2.release_address(@public_ip)
|
|
|
|
end
|
2009-06-30 09:43:39 -07:00
|
|
|
|
2009-08-19 19:11:57 -07:00
|
|
|
it "should return proper attributes" do
|
|
|
|
actual = ec2.allocate_address
|
|
|
|
actual.body['requestId'].should be_a(String)
|
|
|
|
@public_ip = actual.body['publicIp']
|
|
|
|
actual.body['publicIp'].should be_a(String)
|
|
|
|
end
|
2009-06-30 09:43:39 -07:00
|
|
|
|
2009-08-19 19:11:57 -07:00
|
|
|
end
|
2009-06-30 09:43:39 -07:00
|
|
|
end
|