refactor vmwareapi_conn => vmwareapi/driver
Part of bp:virt-driver-cleanup Make the vmwareapi driver consistent in naming as a driver instead of a connection. Get all the vmware driver parts into the same directory Change-Id: I7c7e7c391086cf2fc32e8cb85d557005d417042f
This commit is contained in:
@@ -28,8 +28,8 @@ from nova import test
|
||||
import nova.tests.image.fake
|
||||
from nova.tests.vmwareapi import db_fakes
|
||||
from nova.tests.vmwareapi import stubs
|
||||
from nova.virt.vmwareapi import driver
|
||||
from nova.virt.vmwareapi import fake as vmwareapi_fake
|
||||
from nova.virt import vmwareapi_conn
|
||||
|
||||
|
||||
FLAGS = flags.FLAGS
|
||||
@@ -50,7 +50,7 @@ class VMWareAPIVMTestCase(test.TestCase):
|
||||
vmwareapi_fake.reset()
|
||||
db_fakes.stub_out_db_instance_api(self.stubs)
|
||||
stubs.set_stubs(self.stubs)
|
||||
self.conn = vmwareapi_conn.VMWareESXDriver(False)
|
||||
self.conn = driver.VMWareESXDriver(False)
|
||||
# NOTE(vish): none of the network plugging code is actually
|
||||
# being tested
|
||||
self.network_info = [({'bridge': 'fa0',
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
Stubouts for the test suite
|
||||
"""
|
||||
|
||||
from nova.virt.vmwareapi import driver
|
||||
from nova.virt.vmwareapi import fake
|
||||
from nova.virt.vmwareapi import network_utils
|
||||
from nova.virt.vmwareapi import vmops
|
||||
from nova.virt.vmwareapi import vmware_images
|
||||
from nova.virt import vmwareapi_conn
|
||||
|
||||
|
||||
def fake_get_vim_object(arg):
|
||||
@@ -45,7 +45,7 @@ def set_stubs(stubs):
|
||||
stubs.Set(vmware_images, 'get_vmdk_size_and_properties',
|
||||
fake.fake_get_vmdk_size_and_properties)
|
||||
stubs.Set(vmware_images, 'upload_image', fake.fake_upload_image)
|
||||
stubs.Set(vmwareapi_conn.VMWareAPISession, "_get_vim_object",
|
||||
stubs.Set(driver.VMWareAPISession, "_get_vim_object",
|
||||
fake_get_vim_object)
|
||||
stubs.Set(vmwareapi_conn.VMWareAPISession, "_is_vim_object",
|
||||
stubs.Set(driver.VMWareAPISession, "_is_vim_object",
|
||||
fake_is_vim_object)
|
||||
|
||||
Reference in New Issue
Block a user