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

Version Path
torpedo-1.0.12 lib/torpedo/compute/images.rb
torpedo-1.0.11 lib/torpedo/compute/images.rb
torpedo-1.0.10 lib/torpedo/compute/images.rb
torpedo-1.0.9 lib/torpedo/compute/images.rb
torpedo-1.0.8 lib/torpedo/compute/images.rb
torpedo-1.0.7 lib/torpedo/compute/images.rb
torpedo-1.0.6 lib/torpedo/compute/images.rb
torpedo-1.0.5 lib/torpedo/compute/images.rb
torpedo-1.0.4 lib/torpedo/compute/images.rb
torpedo-1.0.3 lib/torpedo/compute/images.rb
torpedo-1.0.2 lib/torpedo/compute/images.rb
torpedo-1.0.1 lib/torpedo/compute/images.rb
torpedo-1.0.0 lib/torpedo/compute/images.rb