Project

General

Profile

« Previous | Next » 

Revision 6af5feed

Added by Ewoud Kohl van Wijngaarden about 5 years ago

Refs #26423 - Fix fog-vsphere references in tests

8b05fa95168456fb7193bf4303bc1eb2b2136671 updated fog-vsphere to 3.0, but
missed these references.

View differences:

test/unit/compute_resource_host_importer_test.rb
end
test 'does not create an invalid domain' do
Fog::Compute::Vsphere::Server.any_instance.stubs(:name).returns('mytestvm')
Fog::Compute::Vsphere::Server.any_instance.stubs(:hostname).returns(nil)
Fog::Vsphere::Compute::Server.any_instance.stubs(:name).returns('mytestvm')
Fog::Vsphere::Compute::Server.any_instance.stubs(:hostname).returns(nil)
assert_equal 'mytestvm', host.name
assert_nil host.domain
end

Also available in: Unified diff