def test_02_each_image_has_correct_properties
get_auth_url '/api;driver=rackspace/images'
(last_xml_response/'images/image').each do |image|
(image/'name').should_not == nil
(image/'name').should_not == ''
(image/'description').should_not == nil
(image/'description').should_not == ''
(image/'architecture').should_not == nil
(image/'architecture').should_not == ''
(image/'state').text.should == 'ACTIVE'
(image/'owner_id').text.should == ENV['API_USER']
(image/'actions/link').length.should == 1
(image/'actions/link').first[:rel].should == 'create_instance'
end
end