Move unit tests to a separate folder
Until recently, os-win did not have any functional tests. As we're now starting to add such tests, we need to clearly separate unit tests. Note that most OpenStack projects have already done this separation. This change moves the unit tests to a separate folder. Change-Id: I1649fae7095f9b4024e526358ac70a58189365bf
This commit is contained in:
parent
91febc2021
commit
45b07177e9
|
@ -48,7 +48,7 @@ You can run the unit tests with the following command.
|
|||
|
||||
::
|
||||
|
||||
C:\os_win> nosetests os_win\tests
|
||||
C:\os_win> nosetests os_win\tests\unit
|
||||
|
||||
|
||||
How to contribute
|
||||
|
|
|
@ -21,7 +21,7 @@ import mock
|
|||
from oslo_config import cfg
|
||||
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.compute import clusterutils
|
||||
from os_win.utils.compute import livemigrationutils
|
||||
from os_win.utils.compute import migrationutils
|
|
@ -20,7 +20,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.compute import _clusapi_utils
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.compute import _clusapi_utils
|
||||
from os_win.utils.compute import clusterutils
|
||||
|
|
@ -19,7 +19,7 @@ import mock
|
|||
import platform
|
||||
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import _wqlutils
|
||||
from os_win.utils.compute import livemigrationutils
|
||||
from os_win.utils.compute import vmutils
|
|
@ -19,7 +19,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.compute import migrationutils
|
||||
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
import mock
|
||||
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.compute import rdpconsoleutils
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ from six.moves import range # noqa
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import _wqlutils
|
||||
from os_win.utils.compute import vmutils
|
||||
|
|
@ -16,7 +16,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import _wqlutils
|
||||
from os_win.utils.compute import vmutils10
|
||||
|
|
@ -17,7 +17,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.dns import dnsutils
|
||||
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
import mock
|
||||
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import _wqlutils
|
||||
from os_win.utils.metrics import metricsutils
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
import mock
|
||||
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import _wqlutils
|
||||
from os_win.utils.network import networkutils
|
||||
|
|
@ -21,7 +21,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.network import nvgreutils
|
||||
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
import mock
|
||||
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.storage.initiator import base_iscsi_utils
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ import ctypes
|
|||
import six
|
||||
|
||||
from os_win import constants
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.storage.initiator import iscsidsc_structures as iscsi_struct
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ import mock
|
|||
from os_win import _utils
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.storage.initiator import iscsi_utils
|
||||
from os_win.utils.storage.initiator import iscsidsc_structures as iscsi_struct
|
||||
from os_win.utils.storage.initiator import iscsierr
|
|
@ -15,7 +15,7 @@
|
|||
import mock
|
||||
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.storage.initiator import iscsi_wmi_utils
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ import ctypes
|
|||
import six
|
||||
|
||||
from os_win import constants
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.storage.initiator import iscsidsc_structures as iscsi_struct
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.storage.target import iscsi_target_utils as tg_utils
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ import ddt
|
|||
import mock
|
||||
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.storage import diskutils
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ import ddt
|
|||
import mock
|
||||
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils.storage import smbutils
|
||||
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
import ddt
|
||||
import mock
|
||||
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import _acl_utils
|
||||
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
import mock
|
||||
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import baseutils
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import hostutils
|
||||
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
import mock
|
||||
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import hostutils10
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import jobutils
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ import mock
|
|||
|
||||
from os_win import constants
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import _acl_utils
|
||||
from os_win.utils import pathutils
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
import mock
|
||||
|
||||
from os_win import exceptions
|
||||
from os_win.tests import test_base
|
||||
from os_win.tests.unit import test_base
|
||||
from os_win.utils import _wqlutils
|
||||
|
||||
|
Loading…
Reference in New Issue