Sha256: c061af8bb8f588b8bcfb7ddc8fa5ca317e3473a9dae842a4d1c54e1c10cd4739
Contents?: true
Size: 631 Bytes
Versions: 13
Compression:
Stored size: 631 Bytes
Contents
require File.dirname(__FILE__) + '/helper' module Torpedo module Compute class Images < Test::Unit::TestCase def setup @conn=Helper::get_connection @image_id = Helper::get_image_ref(@conn) end def test_list @conn.images.each do |image| assert_not_nil(image[:id]) assert_not_nil(image[:name]) assert_equal("ACTIVE", image[:status]) end end def test_get image=@conn.image(@image_id) assert_equal(@image_id, image.id.to_s) assert_not_nil(image.name) assert_not_nil(image.updated) assert_not_nil(image.created) assert_not_nil(image.status) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems