Sha256: 22bc084bb45ef19398be28c176c425e1dc7576a76538c9227cfae9c83ef2b2cc

Contents?: true

Size: 563 Bytes

Versions: 20

Compression:

Stored size: 563 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

module Torpedo
module Compute
class Flavors < Test::Unit::TestCase

  def setup
    @conn=Helper::get_connection
  end

  def test_list

    @conn.flavors.each do |flavor|
      assert_not_nil(flavor[:id])
      assert_not_nil(flavor[:name])
      assert_not_nil(flavor[:ram])
      assert_not_nil(flavor[:disk])
    end

  end

  def test_get

    flavor = @conn.flavor(1)
    assert_not_nil(flavor.id)
    assert_not_nil(flavor.name)
    assert_not_nil(flavor.ram)
    assert_not_nil(flavor.disk)

  end

end
end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
torpedo-1.0.19 lib/torpedo/compute/flavors.rb
torpedo-1.0.18 lib/torpedo/compute/flavors.rb
torpedo-1.0.17 lib/torpedo/compute/flavors.rb
torpedo-1.0.16 lib/torpedo/compute/flavors.rb
torpedo-1.0.15 lib/torpedo/compute/flavors.rb
torpedo-1.0.14 lib/torpedo/compute/flavors.rb
torpedo-1.0.13 lib/torpedo/compute/flavors.rb
torpedo-1.0.12 lib/torpedo/compute/flavors.rb
torpedo-1.0.11 lib/torpedo/compute/flavors.rb
torpedo-1.0.10 lib/torpedo/compute/flavors.rb
torpedo-1.0.9 lib/torpedo/compute/flavors.rb
torpedo-1.0.8 lib/torpedo/compute/flavors.rb
torpedo-1.0.7 lib/torpedo/compute/flavors.rb
torpedo-1.0.6 lib/torpedo/compute/flavors.rb
torpedo-1.0.5 lib/torpedo/compute/flavors.rb
torpedo-1.0.4 lib/torpedo/compute/flavors.rb
torpedo-1.0.3 lib/torpedo/compute/flavors.rb
torpedo-1.0.2 lib/torpedo/compute/flavors.rb
torpedo-1.0.1 lib/torpedo/compute/flavors.rb
torpedo-1.0.0 lib/torpedo/compute/flavors.rb