Sha256: 4982d4d60c562744c467f449de3da8348d24c32d57a458fcb90c208fa8d8809f

Contents?: true

Size: 1.67 KB

Versions: 6

Compression:

Stored size: 1.67 KB

Contents

require "#{::File.dirname(__FILE__)}/../../../../test_helper"

# Uncomment the tests for live-testing
class TestVmRun < Test::Unit::TestCase
  context "registered as remote base" do
    setup do
      reset!
      $vmx_keys = {
        ::File.expand_path("~/Documents/vm/Ubuntu32bitVM.vmwarevm/Ubuntu32bitVM.vmx") => "192.168.248.133"
      }
      $vmx_files = $vmx_keys.keys
      $ipaddresses = $vmx_keys.values
      
      @cloud = cloud :test_vm_runner do
        
        using :vmrun do
          vmx_hash $vmx_keys
        end
        
      end      
    end    
    # should "be setting the type of remote_base as Vmrun" do
    #   @cloud.remote_base.class.should == PoolParty::Remote::Vmrun
    # end
    # should "have the method vmrun as the remoter base" do
    #   @cloud.vmrun.should == @cloud.remote_base
    # end    
    # should "start vmware instance" do
    #   @cloud.launch_instance!
    #   assert @cloud.vmrun.describe_instances.first[:instance_id], $vmx_files.first
    # end
    # should "have the ip and mac address" do
    #   @cloud.launch_instance!
    #   
    #   vmx_file = @cloud.vmrun.describe_instances.first[:instance_id]
    #   instance = @cloud.vmrun.describe_instance(:vmx_file => vmx_file)
    # 
    #   assert !instance.mac_address.nil?
    #   assert !instance.ip.nil?
    # end    
    # should "be able to turn off the instance" do
    #   @cloud.launch_instance!
    #   @cloud.terminate_instance!
    #   assert @cloud.describe_instances.empty?
    # end
    # teardown do
    #   # PoolParty::Remote::Vmrun.terminate!(
    #   @cloud.describe_instances.each do |inst|
    #     @cloud.terminate_instance! inst[:instance_id]
    #   end
    # end
  end
  
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
auser-poolparty-1.1.6 test/poolparty/net/remoter_bases/vmrun/vmrun_test.rb
auser-poolparty-1.1.7 test/poolparty/net/remoter_bases/vmrun/vmrun_test.rb
auser-poolparty-1.2.0 test/poolparty/net/remoter_bases/vmrun/vmrun_test.rb
auser-poolparty-1.2.1 test/poolparty/net/remoter_bases/vmrun/vmrun_test.rb
auser-poolparty-1.2.2 test/poolparty/net/remoter_bases/vmrun/vmrun_test.rb
poolparty-1.2.2 test/poolparty/net/remoter_bases/vmrun/vmrun_test.rb