spec/beaker/hypervisor/vcloud_pooled_spec.rb in beaker-1.8.1 vs spec/beaker/hypervisor/vcloud_pooled_spec.rb in beaker-1.8.2
- old
+ new
@@ -48,11 +48,11 @@
vcloud = Beaker::VcloudPooled.new( make_hosts, make_opts )
vcloud.stub( :require ).and_return( true )
vcloud.stub( :sleep ).and_return( true )
vcloud.provision
- hosts = vcloud.instance_variable_get( :@vcloud_hosts )
+ hosts = vcloud.instance_variable_get( :@hosts )
hosts.each do | host |
expect( host['vmhostname'] ).to be === 'pool'
end
end
@@ -68,10 +68,10 @@
vcloud.stub( :require ).and_return( true )
vcloud.stub( :sleep ).and_return( true )
vcloud.provision
vcloud.cleanup
- hosts = vcloud.instance_variable_get( :@vcloud_hosts )
+ hosts = vcloud.instance_variable_get( :@hosts )
hosts.each do | host |
name = host.name
vm = MockVsphereHelper.find_vm( name )
expect( vm.runtime.powerState ).to be === "poweredOn" #handed back to the pool, stays on
end