Sha256: a531daae5acd85fc356cd28161b39e61d16a217f4a95ce861bd3a387680d9664
Contents?: true
Size: 655 Bytes
Versions: 6
Compression:
Stored size: 655 Bytes
Contents
require 'spec_helper' describe "ESX Virtual Machine" do include ESXTestHelpers before do @test_host = ESX::Host.connect(esx_host, esx_user, esx_password) end after do @test_host.virtual_machines.each do |vm| vm.destroy end end it "should have an Array of NetworkInterfaces" do vm = create_simple_vm vm.nics.size.should eql(1) vm.nics.first.should be_a ESX::NetworkInterface end it "should have valid property types" do vm = create_simple_vm vm.memory_size.should be_a Fixnum vm.memory_size.should be > 0 vm.nics.should be_an Array vm.power_state.should be_a String end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
esx-0.4.4 | spec/unit/vm_spec.rb |
esx-0.4.3 | spec/unit/vm_spec.rb |
esx-0.4.2 | spec/unit/vm_spec.rb |
esx-0.4.1 | spec/unit/vm_spec.rb |
esx-0.3.2 | spec/unit/vm_spec.rb |
esx-0.3.1 | spec/unit/vm_spec.rb |