2009-07-03 15:09:38 -04:00
|
|
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
|
|
|
|
describe 'EC2.describe_images' do
|
|
|
|
|
|
|
|
it "should return proper attributes with no params" do
|
|
|
|
actual = ec2.describe_images
|
|
|
|
actual.body[:request_id].should be_a(String)
|
|
|
|
image = actual.body[:image_set].first
|
|
|
|
image[:architecture].should be_a(String)
|
|
|
|
image[:image_id].should be_a(String)
|
|
|
|
image[:image_location].should be_a(String)
|
|
|
|
image[:image_owner_id].should be_a(String)
|
|
|
|
image[:image_state].should be_a(String)
|
|
|
|
image[:image_type].should be_a(String)
|
|
|
|
[false, true].should include(image[:is_public])
|
2009-07-09 00:58:02 -04:00
|
|
|
p actual
|
2009-07-03 15:09:38 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
it "should return proper attributes with params"
|
|
|
|
|
|
|
|
end
|