Sha256: fc469191fec9a383c3124efd5cb772c296ada3f251f3b2df38bda909ecdadf3c

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 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.flavors.get(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

1 entries across 1 versions & 1 rubygems

Version Path
torpedo-2.1.0 lib/torpedo/compute/flavors.rb