Adds local fake_instance
fake_instance is used by the unit tests in order to generate fake intances for testing purposes. This commit adds a simpler, local fake_instance module and replaces the usage of the nova fake_instance module.
This commit is contained in:
@@ -20,7 +20,7 @@ from oslo_config import cfg
|
||||
|
||||
from nova import exception
|
||||
from nova import objects
|
||||
from nova.tests.unit import fake_instance
|
||||
from hyperv.tests import fake_instance
|
||||
from nova.tests.unit.objects import test_flavor
|
||||
from hyperv.nova import constants
|
||||
from hyperv.nova import imagecache
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import mock
|
||||
from oslo_config import cfg
|
||||
|
||||
from nova.tests.unit import fake_instance
|
||||
from hyperv.tests import fake_instance
|
||||
from hyperv.nova import livemigrationops
|
||||
from hyperv.nova import vmutils
|
||||
from hyperv.tests.unit import test_base
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
import mock
|
||||
|
||||
from nova.tests.unit import fake_instance
|
||||
from hyperv.tests import fake_instance
|
||||
from hyperv.nova import migrationops
|
||||
from hyperv.nova import vmutils
|
||||
from hyperv.tests.unit import test_base
|
||||
|
||||
@@ -18,7 +18,7 @@ import os
|
||||
import mock
|
||||
|
||||
from nova.compute import task_states
|
||||
from nova.tests.unit import fake_instance
|
||||
from hyperv.tests import fake_instance
|
||||
from hyperv.nova import snapshotops
|
||||
from hyperv.tests.unit import test_base
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ from oslo_config import cfg
|
||||
from oslo_utils import units
|
||||
|
||||
from nova import exception
|
||||
from nova.tests.unit import fake_instance
|
||||
from hyperv.tests import fake_instance
|
||||
from hyperv.nova import constants
|
||||
from hyperv.nova import vmops
|
||||
from hyperv.nova import vmutils
|
||||
|
||||
Reference in New Issue
Block a user