Sha256: 7de8029022633ade241cf0fd75da858e05cae059597c2fc044d2c1c5e8f18dd6

Contents?: true

Size: 623 Bytes

Versions: 7

Compression:

Stored size: 623 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_not_nil(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

7 entries across 7 versions & 1 rubygems

Version Path
torpedo-1.0.19 lib/torpedo/compute/images.rb
torpedo-1.0.18 lib/torpedo/compute/images.rb
torpedo-1.0.17 lib/torpedo/compute/images.rb
torpedo-1.0.16 lib/torpedo/compute/images.rb
torpedo-1.0.15 lib/torpedo/compute/images.rb
torpedo-1.0.14 lib/torpedo/compute/images.rb
torpedo-1.0.13 lib/torpedo/compute/images.rb